You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
test(tae): TestSnapshotGC waits for global checkpoint quiescence #26098
After its concurrent append and snapshot workload, the test calls testutil.WaitAllCheckpointsFinished. The helper requires a global quiescent state: the captured WAL target is checkpointed, the live WAL has no pending entries, and the current incremental checkpoint intent is finished.
The test enables the quick checkpoint configuration: MinCount=1, IncrementalInterval=20ms, GlobalMinCount=1. It also creates a large concurrent WAL burst. In the failing job, the first incremental checkpoint reached LSN 116 and a global checkpoint started, but the ten-second global-quiescence wait expired before the remaining target WAL was checkpointed. There was no checkpoint or GC error, panic, or data-correctness assertion.
This is a test synchronization-contract bug, not evidence of a production GC runtime failure. It is unrelated to PR #26033: that PR changed only TestAppendAndGC2, and both TestAppendAndGC and TestAppendAndGC2 passed in this failing job.
Fix
Change only TestSnapshotGC. After all test workers finish, force and await an incremental checkpoint covering db.TxnMgr.Now() with a bounded context. Keep the subsequent GC and snapshot assertions unchanged. Do not change production GC, checkpoint, or WAL behavior.
Activity
LeftHandCold commentedon Jul 23, 2026
Failure
TestSnapshotGC is flaky in CI. The failing job ID is 89157452007 from workflow run 29992210598.
Root cause
After its concurrent append and snapshot workload, the test calls testutil.WaitAllCheckpointsFinished. The helper requires a global quiescent state: the captured WAL target is checkpointed, the live WAL has no pending entries, and the current incremental checkpoint intent is finished.
The test enables the quick checkpoint configuration: MinCount=1, IncrementalInterval=20ms, GlobalMinCount=1. It also creates a large concurrent WAL burst. In the failing job, the first incremental checkpoint reached LSN 116 and a global checkpoint started, but the ten-second global-quiescence wait expired before the remaining target WAL was checkpointed. There was no checkpoint or GC error, panic, or data-correctness assertion.
This is a test synchronization-contract bug, not evidence of a production GC runtime failure. It is unrelated to PR #26033: that PR changed only TestAppendAndGC2, and both TestAppendAndGC and TestAppendAndGC2 passed in this failing job.
Fix
Change only TestSnapshotGC. After all test workers finish, force and await an incremental checkpoint covering db.TxnMgr.Now() with a bounded context. Keep the subsequent GC and snapshot assertions unchanged. Do not change production GC, checkpoint, or WAL behavior.
Validation
test(tae): scope TestSnapshotGC checkpoint wait (#26099)
test(tae): scope TestSnapshotGC checkpoint wait (matrixorigin#26099)
test(tae): scope TestSnapshotGC checkpoint wait (matrixorigin#26099)
test(tae): scope TestSnapshotGC checkpoint wait (matrixorigin#26099)