Skip to content

test(rotortree): poll for the checkpoint meta file instead of racing - #58

Merged
rymnc merged 1 commit into
mainfrom
fix/rotortree-checkpoint-wait-race
Oct 27, 2026
Merged

rymnc merged 1 commit into
mainfrom
fix/rotortree-checkpoint-wait-race

Conversation

@rymnc

@rymnc rymnc commented Oct 27, 2026

Copy link
Copy Markdown
Member

checkpoint_every_n_entries flaked on #57: wait_for_checkpoint only sees a checkpoint that finishes after the call, and the one the inserts start can finish first, so the wait times out.
Both auto-checkpoint tests now poll for data/checkpoint.meta (written by atomic rename) instead. Test-only; no library change.

wait_for_checkpoint only sees a checkpoint that finishes after the call.
The inserts start the background checkpoint, so it can finish first and
the wait times out. Poll for data/checkpoint.meta, which write_meta
renames into place, so the tests no longer depend on timing.
@rymnc
rymnc requested review from cygnusv and oskarth as code owners October 27, 2026 08:53
Copilot AI balanced review requested due to automatic review settings October 27, 2026 08:53

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Copilot was unable to review this pull request because the user who requested the review has insufficient remaining quota.

An organization owner can choose the repository organization as the billing source for reviews requested by members with a paid Copilot license. Learn about Copilot code review billing.

@rymnc rymnc self-assigned this Oct 27, 2026
@rymnc
rymnc enabled auto-merge (squash) October 27, 2026 08:53
@rymnc
rymnc disabled auto-merge October 27, 2026 09:12
@rymnc
rymnc merged commit fa512f7 into main Oct 27, 2026
14 checks passed
@rymnc
rymnc deleted the fix/rotortree-checkpoint-wait-race branch October 27, 2026 09:12
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.

2 participants