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(pagesever): stablize gc-compaction tests #10621

Merged
merged 1 commit into from
Feb 4, 2025
Merged

Conversation

skyzh
Copy link
Member

@skyzh skyzh commented Jan 31, 2025

Problem

Hopefully this can resolve #10517. The reason why the test is flaky is that after restart the compute node might write some data so that the pageserver flush some layers, and in the end, causing L0 compaction to run, and we cannot get the test scenario as we want.

Summary of changes

Ensure all L0 layers are compacted before starting the test.

Copy link

github-actions bot commented Jan 31, 2025

7414 tests run: 7062 passed, 0 failed, 352 skipped (full report)


Code coverage* (full report)

  • functions: 33.2% (8523 of 25651 functions)
  • lines: 48.9% (71577 of 146258 lines)

* collected from Rust tests only


The comment gets automatically updated with the latest test results
6bd7cbf at 2025-02-04T16:19:55.851Z :recycle:

@skyzh skyzh requested a review from arpad-m February 3, 2025 14:46
@skyzh skyzh marked this pull request as ready for review February 3, 2025 14:46
@skyzh skyzh requested a review from problame February 3, 2025 19:06
Signed-off-by: Alex Chi Z <chi@neon.tech>
@skyzh skyzh force-pushed the skyzh/try-stablize-test branch from 4de6d1a to 6bd7cbf Compare February 4, 2025 14:57
@skyzh skyzh enabled auto-merge February 4, 2025 15:12
@skyzh skyzh added this pull request to the merge queue Feb 4, 2025
Merged via the queue into main with commit cab60b6 Feb 4, 2025
82 checks passed
@skyzh skyzh deleted the skyzh/try-stablize-test branch February 4, 2025 16:13
winter-loo pushed a commit to winter-loo/neon that referenced this pull request Feb 4, 2025
## Problem

Hopefully this can resolve
neondatabase#10517. The reason why the
test is flaky is that after restart the compute node might write some
data so that the pageserver flush some layers, and in the end, causing
L0 compaction to run, and we cannot get the test scenario as we want.

## Summary of changes

Ensure all L0 layers are compacted before starting the test.

Signed-off-by: Alex Chi Z <chi@neon.tech>
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.

flaky test test_pageserver_gc_compaction_idempotent[after_restart]
2 participants