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]: INSERT into a partitioned table with a FULLTEXT index panics in disttae Write #28311
4fdb9e91615f9fc37703039ae28a47849206d1d6 (latest main when reproduced), Linux/amd64 standalone launch deployment.
What happened?
DDL permits a FULLTEXT index on a partitioned table, but inserting rows fails with an internal panic:
panic BUG: cannot write data to partition primary table
pkg/vm/engine/disttae.(*combinedTxnTable).Write
pkg/vm/engine/disttae.(*txnTableDelegate).Write
pkg/sql/colexec/insert.(*Insert).insert_table
This was found as an adjacent counterexample while validating #28309/#28310. Those changes affect DELETE scope only and do not touch INSERT planning or execution.
Reproduction
dropdatabase if exists partition_fulltext_insert;
createdatabasepartition_fulltext_insert;
use partition_fulltext_insert;
createtablep(
id intprimary key,
body text,
fulltext ft(body)
) partition by hash(id) partitions 2;
insert into p values
(1, 'odd token'),
(2, 'even token'),
(3, 'odd three');
Actual behavior
The INSERT returns error 20101 with the panic stack above.
Expected behavior
Either:
DDL rejects the unsupported partitioned-table/FULLTEXT combination before it becomes usable, or
insert/index maintenance routes base rows to physical partitions and maintains FULLTEXT entries without writing to the logical partition-primary table.
No accepted DDL/data path should reach a panic BUG for ordinary SQL.
Root-cause direction
The index-maintenance branch appears to retain or reconstruct an origin-table write target that resolves to the logical partition primary table. Audit INSERT/ODKU/REPLACE/UPDATE/DELETE for synchronous and async FULLTEXT variants, including rollback and multi-row batches, rather than adding a one-statement guard.
PR #28477 checkpoint — new head 4658b22 (2026-10-22)
The latest PR comment reports the compound-partition REPLACE cases and canonical normal FULLTEXT BVT passing on the current tree (354/354 across two runs), while explicitly leaving the receiving-CN WriteS3 failure/cancellation transaction oracle, cleanup/reuse, resource/design/throughput acceptance, and final required CI open. This is the PR author's report; I did not independently execute those tests.
For current head 4658b228182f34d7679d200297c77e9c4cf8d7f5, GitHub returned no combined status entries. Iceberg Connector E2E succeeded but is unrelated; Connector/J Pool Reset E2E is still in progress. The PR comment itself says current-head required CI is separate. I therefore cannot mark issue #28311 independently validated or transfer it yet; its original assignee VioletQwQ-0 remains unchanged and the issue stays open. This does not assert that the original INSERT panic still reproduces.
Next verification: inspect exact-head required CI and obtain the receiving-CN post-progress failure/cancellation plus rollback/cleanup/reuse evidence before deciding whether #28311 is ready for tester follow-up.
PR #28477 checkpoint — formal review of head 795e0a7ac8a3c0eff140298aba836a0f3716a65c (2026-10-23)
XuPeng-SH submitted CHANGES_REQUESTED on this exact head. The review says the earlier compound-partition REPLACE defect is not carried forward, but two acceptance items remain: (1) exact-design/resource acceptance, including representative allocation, active/drained writer peak and throughput/latency evidence; and (2) a real receiving-CN WriteS3 post-progress failure/cancellation test proving complete flush delivery, rollback visibility, receiver cleanup and reuse. The PR body reports canonical FULLTEXT SQL 177/177 twice and focused package checks passing, but also explicitly says those are not deployed/receiving-CN qualification and leaves the above items open. These are PR/reviewer-reported results; this QA run has no MatrixOne checkout and did not execute them. Combined status for this head is empty. Keeping #28311 open with its current assignee; no transfer until the linked issue behavior is independently validated.
QA checkpoint — PR #28477 head 2e783f5ab2a6c74603b0f133c6e037ff43554634
The new XuPeng-SH comment only marks mo-bot review as in progress. The completed exact-head review remains CHANGES_REQUESTED: R7 is still a proposal without design/resource/throughput acceptance, and the actual receiving-CN WriteS3 post-progress failure/cancellation rollback, cleanup and reuse oracle is still missing. No new runtime defect is asserted; these are the same two open acceptance gates recorded on the prior head, not new findings. See the exact-head review.
GitHub's combined status for this SHA is empty. Iceberg Connector E2E and Connector/J Pool Reset E2E are successful, but neither establishes the missing FULLTEXT acceptance. I did not run tests locally: this workspace has no MatrixOne checkout or Go runtime. PR #28477 and issue #28311 remain open; no status or assignee change.
PR #28477 review checkpoint — head 2e783f5ab2a6c74603b0f133c6e037ff43554634 (2026-10-23)
XuPeng-SH submitted a fresh exact-head CHANGES_REQUESTED review at review 5631495888. It confirms the same two outstanding P2 acceptance gates: measured resource/throughput acceptance and a real receiving-CN WriteS3 post-progress failure/cancellation test proving rollback visibility, cleanup and reuse. The review asserts no measured OOM/performance regression and no observed partial commit; it adds no new runtime defect. The earlier compound-partition REPLACE issue is not carried forward.
GitHub combined status is empty. The visible successful Iceberg Connector E2E and Connector/J Pool Reset E2E are unrelated to this FULLTEXT path. I did not run tests locally because this workspace has no MatrixOne checkout or Go runtime. PR #28477 and this issue remain open; assignee VioletQwQ-0 is unchanged.
Activity
XuPeng-SH commentedon Oct 22, 2026
PR #28477 checkpoint — new head 4658b22 (2026-10-22)
The latest PR comment reports the compound-partition REPLACE cases and canonical normal FULLTEXT BVT passing on the current tree (354/354 across two runs), while explicitly leaving the receiving-CN WriteS3 failure/cancellation transaction oracle, cleanup/reuse, resource/design/throughput acceptance, and final required CI open. This is the PR author's report; I did not independently execute those tests.
For current head
4658b228182f34d7679d200297c77e9c4cf8d7f5, GitHub returned no combined status entries. Iceberg Connector E2E succeeded but is unrelated; Connector/J Pool Reset E2E is still in progress. The PR comment itself says current-head required CI is separate. I therefore cannot mark issue #28311 independently validated or transfer it yet; its original assignee VioletQwQ-0 remains unchanged and the issue stays open. This does not assert that the original INSERT panic still reproduces.Next verification: inspect exact-head required CI and obtain the receiving-CN post-progress failure/cancellation plus rollback/cleanup/reuse evidence before deciding whether #28311 is ready for tester follow-up.
XuPeng-SH commentedon Oct 23, 2026
PR #28477 checkpoint — formal review of head
795e0a7ac8a3c0eff140298aba836a0f3716a65c(2026-10-23)XuPeng-SH submitted CHANGES_REQUESTED on this exact head. The review says the earlier compound-partition REPLACE defect is not carried forward, but two acceptance items remain: (1) exact-design/resource acceptance, including representative allocation, active/drained writer peak and throughput/latency evidence; and (2) a real receiving-CN WriteS3 post-progress failure/cancellation test proving complete flush delivery, rollback visibility, receiver cleanup and reuse. The PR body reports canonical FULLTEXT SQL 177/177 twice and focused package checks passing, but also explicitly says those are not deployed/receiving-CN qualification and leaves the above items open. These are PR/reviewer-reported results; this QA run has no MatrixOne checkout and did not execute them. Combined status for this head is empty. Keeping #28311 open with its current assignee; no transfer until the linked issue behavior is independently validated.
XuPeng-SH commentedon Oct 23, 2026
QA checkpoint — PR #28477 head
2e783f5ab2a6c74603b0f133c6e037ff43554634The new XuPeng-SH comment only marks mo-bot review as in progress. The completed exact-head review remains CHANGES_REQUESTED: R7 is still a proposal without design/resource/throughput acceptance, and the actual receiving-CN WriteS3 post-progress failure/cancellation rollback, cleanup and reuse oracle is still missing. No new runtime defect is asserted; these are the same two open acceptance gates recorded on the prior head, not new findings. See the exact-head review.
GitHub's combined status for this SHA is empty. Iceberg Connector E2E and Connector/J Pool Reset E2E are successful, but neither establishes the missing FULLTEXT acceptance. I did not run tests locally: this workspace has no MatrixOne checkout or Go runtime. PR #28477 and issue #28311 remain open; no status or assignee change.
XuPeng-SH commentedon Oct 23, 2026
PR #28477 review checkpoint — head
2e783f5ab2a6c74603b0f133c6e037ff43554634(2026-10-23)XuPeng-SH submitted a fresh exact-head CHANGES_REQUESTED review at review 5631495888. It confirms the same two outstanding P2 acceptance gates: measured resource/throughput acceptance and a real receiving-CN WriteS3 post-progress failure/cancellation test proving rollback visibility, cleanup and reuse. The review asserts no measured OOM/performance regression and no observed partial commit; it adds no new runtime defect. The earlier compound-partition REPLACE issue is not carried forward.
GitHub combined status is empty. The visible successful Iceberg Connector E2E and Connector/J Pool Reset E2E are unrelated to this FULLTEXT path. I did not run tests locally because this workspace has no MatrixOne checkout or Go runtime. PR #28477 and this issue remain open; assignee VioletQwQ-0 is unchanged.
fix(ddl): preserve current indexes when adding partitions (#33619)