Repository navigation
Description
Is there an existing issue for the same bug?
- I have checked the existing issues.
Searched open and closed issues for TestDelete4, RowidPrefixEq, TombstoneRangeScanByObject, and the bounds-panic signature. Closed #29744 concerns an off-by-one assertion and closed #29680 concerns invalid-fixture ExpectedEOB; neither describes this bounds-panic stack. This report does not reopen either issue or assume the same cause.
Branch Name
main-based PR CI; official comparison baseline main.
Commit ID
CI / PR #32160 head: ce0f9958bac803f9e0b774904c7b265dd8c9f5f7.
Official main comparison: 36c99836498293e5ada615a017908832e99072af (verified against the official repository ref).
Other Environment Information
- Failing environment: Ubuntu/Linux x86_64, Go 1.27.1, CGO enabled, race detector,
matrixone_testtags,-short, heavy-package stage with-p 1. - Local comparison: Darwin/arm64, Go 1.27.1, repository
mo-cgo-testwrapper, validated arm64 native libraries, same race/tags/CGO/short mode. - Local failures were not reproduced. This is a non-PR flaky candidate with the evidence below, not a claim of a proven deterministic production root cause or a Linux-local reproduction.
Actual Behavior
Run 41830667299, attempt 1, failed in UT job 126576809802, Unit Testing.
The complete failed-job logs and diagnostic artifact were read. The single failed package is pkg/vm/engine/tae/db/test; the active failing case is TestDelete4.
There are 18 caught worker panics with the first stack below, followed by an uncaught panic with the second stack:
[ants]: worker exits from panic: runtime error: index out of range [12] with length 1
container/vector.GetFixedAtNoTypeCheck vector.go:3792
tae/containers.getNonNullValue utils.go:456
tae/containers.(*vectorWrapper).Get vector.go:155
tae/tables.(*baseObject).GetValue base.go:712
tae/txn/txnimpl.(*txnTable).GetValue table.go:1358
...
tae/db/test.TestDelete4.func1.1 db_test.go:6026
panic: runtime error: index out of range [0] with length 0
tae/index.ZM.RowidPrefixEq zm.go:727
tae/tables.TombstoneRangeScanByObject.func1 table_scan.go:219
tae/catalog.ObjectListSnapshot.VisitAllUnlocked object_list.go:1037
tae/tables.TombstoneRangeScanByObject table_scan.go:166
tae/tables/txnentries.(*flushTableTailEntry).collectDelsAndTransfer flushTableTail.go:229
tae/tables/txnentries.(*flushTableTailEntry).PrepareCommit flushTableTail.go:305
...
tae/txn/txnbase.(*TxnManager).onPreWalStage txnmgr.go:919
The UT command exited with go-test=1, report=0, analysis=0, causing make exit 2. The separate CI Required job 126611123060 failed only because the aggregate check reported matrixone-ci: failure.
This is a runtime bounds panic, not a compile/type/static-check failure, race-detector report, OOM kill, or a log-parser failure.
Expected Behavior
The concurrent range-delete/append/restart test should finish without reading past a vector or indexing an empty zonemap buffer. TAE flush prepare-commit must not terminate the test process with a bounds panic.
Steps to Reproduce
The failing CI heavy-package invocation was:
go test -mod=readonly -vet=off -short -v -json -tags matrixone_test -p 1 -timeout 40m -race github.com/matrixorigin/matrixone/pkg/backup github.com/matrixorigin/matrixone/pkg/fileservice github.com/matrixorigin/matrixone/pkg/sql/plan/function github.com/matrixorigin/matrixone/pkg/vm/engine/tae/db/test
Focused local selection, run separately three times at each revision:
.agents/skills/mo-dev/scripts/mo-cgo-test -vet=off -short -v -race -tags matrixone_test -p 1 -count=1 -timeout 120s -run '^TestDelete4$' ./pkg/vm/engine/tae/db/test
Each local invocation also supplies -overlay=<test-path-overlay.json> and a separate TMPDIR. The overlay changes only pkg/vm/engine/tae/testutils/helpers.go from its fixed /tmp test root to os.TempDir() so concurrent tasks cannot share/delete each other's fixture. It changes no test operations, assertions, scheduling controls, or product code. The same helper overlay and native inputs are used on both sides.
Additional information
The four checks used to classify this as a non-PR flaky candidate:
- Full failure evidence: complete attempt-1 failed-job log inspected, exact case and both panic stacks captured, and terminal failure classified as a nondeterministic runtime panic. No compile/type/static/security-gate or deterministic error is hidden by the rerun.
- PR-head repetitions: clean PR head
ce0f9958bac803f9e0b774904c7b265dd8c9f5f7passed three consecutive isolated focused invocations with-race -tags matrixone_testand the repository CGO wrapper. Each log contains=== RUN TestDelete4,--- PASS: TestDelete4, package pass, and exit 0. - Causal scope: the complete PR diff is only
pkg/objectio/ioutil/sinker.goand two ioutil test files. Production changes cover panic-safe buffer ownership in streaming/accumulate/pipeline Sinker merge spill. The failing TAE flush job writes throughNewBlockWriterWithArena/BlockWriter.WriteBatch/Syncdirectly, without the changed Sinker merge-spill functions.TestDelete4, the vector/GetValue code, TAE flush/transfer/zonemap paths,ioutil/writer.go, module inputs, and CI harness are byte-identical between base and head. The two ioutil test files do not compile into the TAE test dependency. Same-head CI also passed all 75 ioutil root tests (package elapsed 4.491s), including every added ownership regression; the independent review is approved. - Clean official-main repetitions: the same managed lane was temporarily detached at the exact verified official-main SHA, with clean Git status, and the same focused command/mode/test-directory overlay passed three consecutive times. The PR branch/head was then restored unchanged and clean. All product sources for these runs are official-main sources; no Sinker-reversal overlay is involved in these clean-main runs. Earlier whole-PR-reversal overlay probes also passed, but are not substituted for this clean-checkout comparison.
No unrelated TAE product code or test assertions are changed in PR #32160. Missing local reproduction is the expected result for the three-pass flaky-candidate comparison, not proof that the underlying defect is fixed. Raw logs, input fingerprints, overlay, and command/exit receipts are retained in the repair task's diagnostic directory, outside source control.
After recording this issue, request exactly one failed-jobs rerun of run 41830667299, then verify the new attempt was accepted. A recurrence with the same signature requires fresh attribution, not an automatic repeated rerun.
Activity
Stabilize native CI runners and WAL replay checkpoint test (#32353)
Fix native preparation and stabilize CI tests (#32574)
XuPeng-SH commentedon Nov 12, 2026
合并范围记录:#32574 已合入 main(
4760bcaa88b23fabe064b1631b624c0e8c40d549)。已修复空 tombstone flush/replay 可复现的对象级 rowid zonemap 未初始化导致 RowidPrefixEq panic:未知摘要交给既有 owner-aware collector,已初始化摘要保留负向剪枝,错误路径释放部分结果。作者在 rebased head1ec57307c7报告 owning tables normal/race、db/test race、针对性重复及静态检查通过,旧代码覆盖可重现此 panic。本轮没有新跑最终 merge SHA。PR 明确不修复独立历史 GetValue 行偏移 panic,也未证明原 CI 对象的状态;本 issue 包含两条 panic 栈,保持研发与开放,不能整体转测或关闭。XuPeng-SH commentedon Nov 14, 2026
Consolidated into the main flaky CI/UT dynamic tracker; this standalone report is no longer tracked separately.
fix(ci): correct SCA closure and native test lifecycle ownership (#32717