Repository navigation
test(tae): scope TestCkpLeak checkpoint wait - #26244
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? |
db8a819 to
5707671
Compare
5707671 to
b03a74d
Compare
XuPeng-SH
left a comment
There was a problem hiding this comment.
Deep-reviewed the rebased head. It now keeps testutil.TestCheckpointTimeout and removes only the global WaitAllCheckpointsFinished wait. ForceCheckpoint flushes and waits for an incremental checkpoint covering the fixed post-workload timestamp, so the restart/leak assertions retain their intent without chasing later background checkpoint activity. Focused TestCkpLeak passes locally; no production code is changed and no blocking issue was found.
Merge Queue Status
This pull request spent 19 minutes 40 seconds in the queue, with no time running CI. Waiting for
All conditions
ReasonPull request #26244 has been dequeued Pull request from fork cannot be queued. This pull request comes from a fork, and Mergify needs the author's permission to update its branch.
Failing checks:
HintYou should look at the reason for the failure and decide if the pull request needs to be fixed or if you want to requeue it. Tick the box to put this pull request back in the merge queue (same as
|
## What type of PR is this? - [ ] API-change - [x] BUG - [ ] Improvement - [ ] Documentation - [ ] Feature - [ ] Enhancement - [ ] Performance - [ ] Refactoring - [ ] Dependency Upgrade - [x] Test and CI ## Which issue(s) this PR fixes: issue matrixorigin#26242 ## What this PR does / why we need it: `TestCkpLeak` waited for global checkpoint quiescence after 200 concurrent appends. A new incremental checkpoint intent can stay pending after table-tail flush completes, so the 10-second helper can observe `target LSN: 201, checkpointed LSN: 1, current LSN: 203` even though the checkpoint worker is healthy. The production stalled-intent recovery threshold is two minutes, which does not fit this test contract. Fence the completed workload at `db.TxnMgr.Now()` and use a bounded `ForceCheckpoint` to flush, schedule, and wait for a checkpoint covering that fixed timestamp. This follows the synchronization pattern already used by related TAE GC tests and changes test code only. Validation: - `mo-cgo-test -count=20 -run ^TestCkpLeak$ -timeout=180s ./pkg/vm/engine/tae/db/test` - `mo-cgo-test -race -count=3 -run ^TestCkpLeak$ -timeout=240s ./pkg/vm/engine/tae/db/test` - `mo-cgo-test -count=3 -run ^(TestCkpLeak|TestSnapshotGC|TestAppendAndGC2)$ -timeout=240s ./pkg/vm/engine/tae/db/test` - `go vet -mod=readonly ./pkg/vm/engine/tae/db/test` - `go build -mod=readonly ./pkg/vm/engine/tae/db/...` Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
## What type of PR is this? - [ ] API-change - [x] BUG - [ ] Improvement - [ ] Documentation - [ ] Feature - [ ] Enhancement - [ ] Performance - [ ] Refactoring - [ ] Dependency Upgrade - [x] Test and CI ## Which issue(s) this PR fixes: issue matrixorigin#26242 ## What this PR does / why we need it: `TestCkpLeak` waited for global checkpoint quiescence after 200 concurrent appends. A new incremental checkpoint intent can stay pending after table-tail flush completes, so the 10-second helper can observe `target LSN: 201, checkpointed LSN: 1, current LSN: 203` even though the checkpoint worker is healthy. The production stalled-intent recovery threshold is two minutes, which does not fit this test contract. Fence the completed workload at `db.TxnMgr.Now()` and use a bounded `ForceCheckpoint` to flush, schedule, and wait for a checkpoint covering that fixed timestamp. This follows the synchronization pattern already used by related TAE GC tests and changes test code only. Validation: - `mo-cgo-test -count=20 -run ^TestCkpLeak$ -timeout=180s ./pkg/vm/engine/tae/db/test` - `mo-cgo-test -race -count=3 -run ^TestCkpLeak$ -timeout=240s ./pkg/vm/engine/tae/db/test` - `mo-cgo-test -count=3 -run ^(TestCkpLeak|TestSnapshotGC|TestAppendAndGC2)$ -timeout=240s ./pkg/vm/engine/tae/db/test` - `go vet -mod=readonly ./pkg/vm/engine/tae/db/test` - `go build -mod=readonly ./pkg/vm/engine/tae/db/...` Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
## What type of PR is this? - [ ] API-change - [x] BUG - [ ] Improvement - [ ] Documentation - [ ] Feature - [ ] Enhancement - [ ] Performance - [ ] Refactoring - [ ] Dependency Upgrade - [x] Test and CI ## Which issue(s) this PR fixes: issue matrixorigin#26242 ## What this PR does / why we need it: `TestCkpLeak` waited for global checkpoint quiescence after 200 concurrent appends. A new incremental checkpoint intent can stay pending after table-tail flush completes, so the 10-second helper can observe `target LSN: 201, checkpointed LSN: 1, current LSN: 203` even though the checkpoint worker is healthy. The production stalled-intent recovery threshold is two minutes, which does not fit this test contract. Fence the completed workload at `db.TxnMgr.Now()` and use a bounded `ForceCheckpoint` to flush, schedule, and wait for a checkpoint covering that fixed timestamp. This follows the synchronization pattern already used by related TAE GC tests and changes test code only. Validation: - `mo-cgo-test -count=20 -run ^TestCkpLeak$ -timeout=180s ./pkg/vm/engine/tae/db/test` - `mo-cgo-test -race -count=3 -run ^TestCkpLeak$ -timeout=240s ./pkg/vm/engine/tae/db/test` - `mo-cgo-test -count=3 -run ^(TestCkpLeak|TestSnapshotGC|TestAppendAndGC2)$ -timeout=240s ./pkg/vm/engine/tae/db/test` - `go vet -mod=readonly ./pkg/vm/engine/tae/db/test` - `go build -mod=readonly ./pkg/vm/engine/tae/db/...` 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 #26242
What this PR does / why we need it:
TestCkpLeakwaited for global checkpoint quiescence after 200 concurrent appends. A new incremental checkpoint intent can stay pending after table-tail flush completes, so the 10-second helper can observetarget LSN: 201, checkpointed LSN: 1, current LSN: 203even though the checkpoint worker is healthy. The production stalled-intent recovery threshold is two minutes, which does not fit this test contract.Fence the completed workload at
db.TxnMgr.Now()and use a boundedForceCheckpointto flush, schedule, and wait for a checkpoint covering that fixed timestamp. This follows the synchronization pattern already used by related TAE GC tests and changes test code only.Validation:
mo-cgo-test -count=20 -run ^TestCkpLeak$ -timeout=180s ./pkg/vm/engine/tae/db/testmo-cgo-test -race -count=3 -run ^TestCkpLeak$ -timeout=240s ./pkg/vm/engine/tae/db/testmo-cgo-test -count=3 -run ^(TestCkpLeak|TestSnapshotGC|TestAppendAndGC2)$ -timeout=240s ./pkg/vm/engine/tae/db/testgo vet -mod=readonly ./pkg/vm/engine/tae/db/testgo build -mod=readonly ./pkg/vm/engine/tae/db/...