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
[Bug]: temporary-table ALTER loses auto-increment metadata in Compose+Proxy BVT #28352
test/distributed/cases/temporary/temporary_table_limitation.sql failed 16 of 137 assertions. The first failing statement, alter table temp_alter_column add column extra int default 7;, returned:
internal error: incrservice: expected one auto-increment column at index 0 for table 331122, found 0 rows
The subsequent ALTER and result assertions cascaded, including a leaked-copy-table count of 4.
Expected Behavior
ALTER operations on temporary tables with an auto-increment column succeed and preserve the expected schema and rows.
Observe temporary_table_limitation.sql at row 120.
Additional information
The same PR diff changes only four pkg/fileservice/*_test.go files for object-storage test isolation; it does not modify temporary tables, incrementation service, distributed BVT cases, or CI workflow definitions. The coverage job failure is downstream: coverage merge was skipped because this BVT producer failed.
temporary_table_limitation.sql failed 16/137 assertions in Compose+Proxy.
The first ALTER failure again returned incrservice: expected one auto-increment column at index 0 ... found 0 rows; later assertions found four leaked alter-copy tables.
Coverage failed only because this BVT producer was unavailable.
PR #28272 changes pkg/sql/compile/ddl.go only in Scope.CreateDatabase to pass a typed database marker; it does not modify temporary-table ALTER, auto-increment metadata, proxy session routing, this BVT case, or CI. The parallel Compose pessimistic BVT passed.
temporary_table_limitation.sql again failed 16/137 assertions.
The first failure was again row 120, alter table temp_alter_column add column extra int default 7;, returning incrservice: expected one auto-increment column at index 0 ... found 0 rows.
The cascade again ended with four leaked __mo_alter_copy_ tables.
PR #28325 changes only frontend clone/data-branch admission and their tests. Its diff against main does not modify temporary-table ALTER, increment service, this BVT case, or CI; the BVT file is byte-identical to main (sha256 ee2862a2bcadad9ba5893283f1145709d76149c098be075af552061abce85b86). The workflow is already at attempt 2, so it was not rerun again.
Activity
gouhongshen commentedon Sep 7, 2026
Recurrence on PR #28272 at head
9fd92cd87b675eb539afec0a7b3a12720f625cc3:temporary_table_limitation.sqlfailed 16/137 assertions in Compose+Proxy.incrservice: expected one auto-increment column at index 0 ... found 0 rows; later assertions found four leaked alter-copy tables.PR #28272 changes
pkg/sql/compile/ddl.goonly inScope.CreateDatabaseto pass a typed database marker; it does not modify temporary-table ALTER, auto-increment metadata, proxy session routing, this BVT case, or CI. The parallel Compose pessimistic BVT passed.gouhongshen commentedon Sep 7, 2026
Repeated CI evidence: workflow run 34124295799 attempt 2 also failed in
Matrixone Compose CI / multi cn e2e bvt test docker compose(PROXY).temporary_table_limitation.sqlrow 120,alter table temp_alter_column add column extra int default 7;internal error: incrservice: expected one auto-increment column at index 0 for table 331144, found 0 rowsPREREQUISITES_READY=falseafter the BVT producer failed.The workflow is already at attempt 2, so it was not rerun again.
gouhongshen commentedon Sep 7, 2026
PR #28272 repeat confirmed on workflow run
34125092777, attempt 2:temporary_table_limitation.sqlrow 120:incrservice: expected one auto-increment column at index 0 ... found 0 rowsPREREQUISITES_READY=falseThis is the second attempt for the run, so it was not rerun again.
XuPeng-SH commentedon Sep 7, 2026
introduced by #28324
gouhongshen commentedon Sep 7, 2026
Repeated CI evidence from PR #28325, workflow run 34130861091 attempt 2:
temporary_table_limitation.sqlagain failed 16/137 assertions.alter table temp_alter_column add column extra int default 7;, returningincrservice: expected one auto-increment column at index 0 ... found 0 rows.__mo_alter_copy_tables.prerequisites_ready: falseafter the PROXY producer failed.PR #28325 changes only frontend clone/data-branch admission and their tests. Its diff against
maindoes not modify temporary-table ALTER, increment service, this BVT case, or CI; the BVT file is byte-identical tomain(sha256 ee2862a2bcadad9ba5893283f1145709d76149c098be075af552061abce85b86). The workflow is already at attempt 2, so it was not rerun again.fix(temp): keep ALTER COPY DDL in executor transaction (#28356)
fix(frontend): order composite lineage lifecycle locks (#28325)
fix(temp): keep ALTER COPY DDL in executor transaction (matrixorigin#…
fix(frontend): order composite lineage lifecycle locks (matrixorigin#…
fix(temp): keep ALTER COPY DDL in executor transaction (matrixorigin#…
fix(frontend): order composite lineage lifecycle locks (matrixorigin#…
fix(temp): keep ALTER COPY DDL in executor transaction (matrixorigin#…
fix(frontend): order composite lineage lifecycle locks (matrixorigin#…