Repository navigation
Description
Is there an existing issue for the same bug?
- I have checked the existing issues.
Searched open and closed issues for the exact test name, subtest, pub_recheck, and the publication retry/missing-table signature. #33325 concerns a different SQL operation and error code (DROP ACCOUNT, 20105).
Branch Name
main (PR target)
Commit ID
PR #33646 head 5db33ca4e5cfa84d7bb8e9ff0d236407c7dd5966. Clean official main comparison 5b42e69ad5b608ca099aad87bdb8b7f78a58d73a.
Other Environment Information
CI used Ubuntu x86-64, Go 1.27.1, CGO_ENABLED=1, -race -short -tags matrixone_test, and four embedded batch workers. The isolated comparison used Go 1.27.1 on Darwin arm64 with the same race, short, tag, and CGo mode, GOMAXPROCS=2, and the same native artifacts after checking that the two revisions have identical native build inputs.
Actual Behavior
Run 46808652204, attempt 1 failed in UT Test on Ubuntu/x86, job 143213214163. The Unit Testing step ran make ut UT_CONFIGURED=1 UT_PARALLEL=8 UT_TIMEOUT=40 UT_SHARD=all and exited 2. The only failing leaf reported was:
TestPublicationAccountLockScopes/explicit_targets/publication_dropped_before_source_table_becomes_valid
pkg/embed/publication_account_lock_test.go:182
expected: 0x5094 (ErrTxnNeedRetry, 20628)
actual: 0x4e85 (ErrInternal, 20101)
CREATE PUBLICATION IF NOT EXISTS pub_recheck DATABASE pub_new_src TABLE t ACCOUNT range_c
internal error: table 't' not exists
CI Required, job 143244958353 failed on Error: matrixone-ci: failure while aggregating the UT result.
Expected Behavior
In this test, after the existing publication is dropped and its replacement source table is created across CNs, the paused CREATE should return ErrTxnNeedRetry before writing any publication or grant. A fresh CREATE should then succeed.
Steps to Reproduce
- Use the Linux/x86 CGo test environment and run the UT command above.
- To isolate the same leaf on a prepared native environment, run:
CGO_ENABLED=1 GOMAXPROCS=2 MO_TEST_CLUSTER_ADMISSION_POOL_SIZE=4 \
.agents/skills/mo-dev/scripts/mo-cgo-test -race -short -tags matrixone_test \
-count=1 -timeout=10m -vet=off -v \
-run '^TestPublicationAccountLockScopes$/^explicit_targets$/^publication_dropped_before_source_table_becomes_valid$' ./pkg/embed
The test pauses CREATE at the shared source-database lock on CN1. CN0 drops the existing publication and creates the source table. CN1 resumes and validates the explicit table list before reaching the final publication recheck. The CI error comes from that table lookup, before the branch that can return the expected retry. The log establishes the failing lookup, but does not establish the exact catalog visibility condition that caused it.
Additional information
- The complete failed-job output identifies an assertion failure. There is no terminal compile, race report, security gate, OOM, or timeout failure in this run.
- The PR's full diff is confined to Iceberg append file budgeting and its tests in
pkg/iceberg/writeandpkg/sql/iceberg. The failing test issues ordinary publication DDL and native table DDL across two embedded CNs. The frontend route ishandleCreatePublication → doCreatePublication → createPublicationWithTableSelection → resolvePubTableNames; the route is unchanged and does not open the modified Iceberg append writer. The PR also leaves the test fixture, transaction/lock paths, and UT harness unchanged relative to its merge base. - Three separate uncached invocations passed on the PR head. Three separate uncached invocations passed on the clean official main source snapshot exported from the exact SHA above. Each invocation selected and executed the exact failing leaf. The exported snapshot used
-buildvcs=falseto exclude VCS metadata from the test binary. The isolated comparison did not reproduce the Linux batched failure. - Current PR head also passed targeted Iceberg race checks for frozen-metadata accounting, multi-file append, cancellation and orphan sweeping after TTL, and the replacement fanout control. The original run passed SCA, coverage and the enabled Linux/x64 BVT jobs.
- This evidence classifies the failure as a flaky candidate outside PR fix(iceberg): reclaim unused append file metadata budget #33646. The intended next action is one failed-jobs rerun of attempt 1, with this issue tracking recurrence.
Activity