Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix flaky test_gc_of_remote_layers #7647

Merged
merged 2 commits into from
May 8, 2024
Merged

Fix flaky test_gc_of_remote_layers #7647

merged 2 commits into from
May 8, 2024

Conversation

petuhovskiy
Copy link
Member

@petuhovskiy petuhovskiy commented May 7, 2024

Fixes flaky test test_gc_of_remote_layers, which was failing because of the Nothing to GC pageserver log.
I looked into the fails, it seems that backround gc_loop sometimes started GC for initial tenant, which wasn't
configured to disable GC. The fix is to not create initial tenant with enabled gc at all.

Fixes #7538

Copy link

github-actions bot commented May 7, 2024

3024 tests run: 2891 passed, 0 failed, 133 skipped (full report)


Flaky tests (1)

Postgres 15

  • test_vm_bit_clear_on_heap_lock: debug

Code coverage* (full report)

  • functions: 31.4% (6313 of 20125 functions)
  • lines: 47.3% (47582 of 100666 lines)

* collected from Rust tests only


The comment gets automatically updated with the latest test results
a044870 at 2024-05-08T15:29:48.050Z :recycle:

@petuhovskiy petuhovskiy marked this pull request as ready for review May 8, 2024 10:24
@petuhovskiy petuhovskiy requested a review from koivunej May 8, 2024 10:24
Copy link
Contributor

@koivunej koivunej left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think your conclusion is correct, but I'd still like to get rid of the extra tenant which has no business causing problems like this (many tests have this pattern sadly).

Confirmed there's the

assert not env.pageserver.log_contains("Nothing to GC")

Which was probably quite obvious from failures.

@petuhovskiy petuhovskiy changed the title Disable background GC in test_gc_of_remote_layers Fix flaky test_gc_of_remote_layers May 8, 2024
@petuhovskiy petuhovskiy enabled auto-merge (squash) May 8, 2024 14:47
@petuhovskiy petuhovskiy merged commit 0457980 into main May 8, 2024
47 checks passed
@petuhovskiy petuhovskiy deleted the fix-7538 branch May 8, 2024 15:22
a-masterov pushed a commit that referenced this pull request May 20, 2024
Fixes flaky test `test_gc_of_remote_layers`, which was failing because
of the `Nothing to GC` pageserver log.
I looked into the fails, it seems that backround `gc_loop` sometimes
started GC for initial tenant, which wasn't
configured to disable GC. The fix is to not create initial tenant with
enabled gc at all.

Fixes #7538
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

test_gc_of_remote_layers is flaky
2 participants