Repository navigation
test(tae): wait for checkpoint completion consistently - #25953
Conversation
Qodo reviews are paused for this user.Troubleshooting steps vary by plan Learn more → On a Teams plan? Using GitHub Enterprise Server, GitLab Self-Managed, or Bitbucket Data Center? |
gouhongshen
left a comment
There was a problem hiding this comment.
Codex automated review
The shared waiter does not establish a completion boundary beyond the pre-existing instantaneous predicate, so the linked intermittent pending-LSN failure remains possible. Existing PR reviews, issue comments, and inline threads are empty; CI is green, but local focused testing could not run because go is unavailable.
P1 - Wait for the forced checkpoint's completion boundary, not the same racy snapshot (pkg/vm/engine/tae/db/testutil/funcs.go:307)
This polls the unchanged AllCheckpointsFinished predicate, then re-reads it once in require.True. That predicate reads the WAL pending count and current incremental intent independently; it has no generation/token tied to the preceding ForceCheckpoint/ForceGlobalCheckpoint call. #25931 records the concrete failure: this predicate returned, then the immediately following pending-LSN assertion observed 1. The new helper can follow the identical interleaving (or fail its new recheck) rather than wait for the scheduler work to settle. Use a completion signal scoped to the forced checkpoint, or otherwise synchronize the scheduler/WAL state before returning; merely centralizing and reasserting the old snapshot does not fix the flake.
6c05183 to
1b3432b
Compare
XuPeng-SH
left a comment
There was a problem hiding this comment.
Reviewed latest head 1b3432b. No blocking findings.
The shared waiter now waits for the WAL checkpointed LSN to reach the captured target/current watermark and turns a silent polling timeout into an explicit assertion failure. The forced ICKP/GCKP completion path and updated callers are consistent.
Local verification:
- TestGlobalCheckpoint2: 20/20 passed
- TestGlobalCheckpoint2 under -race: 3/3 passed
- TestAppend2, TestTruncate1, TestReplay5: 5/5 each passed
- Test_gcArg: 5/5 passed
- go vet passed for the changed/consumer packages
gouhongshen
left a comment
There was a problem hiding this comment.
Codex automated review
No findings. The current head captures a post-force WAL target and waits for it to be checkpointed, addressing the obsolete blocking review. Existing PR reviews/comments/inline comments were inspected; Ubuntu CI passed the affected test package. Local CGo tests could not start because libmo.dylib is absent.
Merge Queue Status
This pull request spent 21 minutes 46 seconds in the queue, with no time running CI. ReasonThe pull request can't be updated
HintYou should update or rebase your pull request manually. If you do, this pull request will automatically be requeued once the queue conditions match again. Tick the box to put this pull request back in the merge queue (same as
|
…25953) ## What type of PR is this? - [ ] API-change - [x] BUG - [ ] Improvement - [ ] Documentation - [ ] Feature - [ ] Test and CI - [ ] Code Refactoring ## Which issue(s) this PR fixes: issue matrixorigin#25931 ## What this PR does / why we need it: wait for checkpoint completion consistently Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
…25953) ## What type of PR is this? - [ ] API-change - [x] BUG - [ ] Improvement - [ ] Documentation - [ ] Feature - [ ] Test and CI - [ ] Code Refactoring ## Which issue(s) this PR fixes: issue matrixorigin#25931 ## What this PR does / why we need it: wait for checkpoint completion consistently Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
…25953) ## What type of PR is this? - [ ] API-change - [x] BUG - [ ] Improvement - [ ] Documentation - [ ] Feature - [ ] Test and CI - [ ] Code Refactoring ## Which issue(s) this PR fixes: issue matrixorigin#25931 ## What this PR does / why we need it: wait for checkpoint completion consistently Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
What type of PR is this?
Which issue(s) this PR fixes:
issue #25931
What this PR does / why we need it:
wait for checkpoint completion consistently