Repository navigation
Fix flaky 40-slice single-volume live test: drain par-rs fold queue before the late volume - #741
Merged
Merged
Conversation
…ueue before the late volume A fold still queued when a late volume's slots are added lands in them directly, so the control read nothing from disk and backfill > 0 failed once under load. Test-only. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01LG44gYUGuwLMB2hw7HQGbM
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
Collaborator
Author
|
Clean-room review of head 3471984: G2G (diagnosis matches par-rs fold/fold_lane/flush; no assertion weakened; no other source of zero or nonzero reads in these tests). Farm x86_64 and arm64 results are in the description. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes the flaky
parchecker::tests::live_40_slice_single_volume_recovery_is_planned_whole_and_never_backfilled(it failed once on Linux x86_64 withassertion failed: backfill > 0, passed on rerun).Cause
The control case (no volume in the plan) expects the late volume's new syndrome slots to be back-filled from disk. par-rs folds verified slices on its own fold threads:
on_article_finishedmarks the slice VerifiedGood and only queues the fold, andfold_lanereads the slot list when the queued job runs. If a fold is still queued when the volume's slots are added (fold threads starved on a loaded machine), it lands in the new slots directly andfolded_maskis set, so the back-fill finds nothing to read andbackfill_bytes_readstays 0. It is not the memory pool (this test uses a privateBudgetPool), the trust option (checked forced on and off, no change), or a background copy.held_volume_case(live_planned_volumes_cover_the_damage_before_any_volume_past_the_plan) has the same control (backfill > 0) and the same race, so it gets the same fix.Fix (test only)
entry.session.flush()(par-rs: wait until all queued folds have been applied) before the late volume arrives, in both cases. Nothing is weakened: the planned case still assertsbackfill == 0and 12 slots up front; the control still assertsbackfill > 0.Evidence and limits
parchecker::live_lifecycle_testsstill draw on the shared 500 MBLIVE_BUDGET(67 MB per session). Running thelive_tests at full parallelism gaveStreamingMemoryLimitin 21 of them. That is a different flake class the full suite has not hit; a private pool (as par-rs b60bfd1: decode-ahead to live extraction, zero re-read live repair; forged FileDesc is an unusable set #737 did for live_trust) is the remedy.Validation (Actions unavailable; farm runs on the exact head)
rg-farm picked 12 test threads for these hosts. Functional scenarios: none cover this test-only change; one smoke scenario was run.
Deployment
Test-only change, no deployable artifact: no 6790 deploy applies.
🤖 Generated with Claude Code
https://claude.ai/code/session_01LG44gYUGuwLMB2hw7HQGbM