Repository navigation
Description
Is there an existing issue for the same bug?
- I have checked the existing issues.
Searched pub_sub4, jdbc_index_info, subscription index metadata, and prepared/context-canceled failures. Closed #29642 records the same historical CI symptom but explicitly did not establish that its white-box shared-broadcast bug caused the SQL failure. No open issue covering this observed prepared-metadata cancellation was found. This report does not assume the same root cause or reopen that separate white-box conclusion.
Branch Name
main-based PR branch issue-29481-main (PR #29651).
Commit ID
f33345a5e44c7f65ea6419b6ef8320eb9837c2f0; clean merge-base dce60631f8c857ae730a4d2f328df5962e4f2a8d.
Other Environment Information
- GitHub Actions run 37739092806.
- Multi-CN Docker Compose + Proxy BVT job.
- Failure window: 2026-10-08 07:24:58 UTC.
- This PR changes only
docs/design/Markdown, a reference JSON snapshot, and a standalone MySQL reference probe. There are no PR changes to the product, BVT cases/results, workflows, Makefile, or Go dependencies relative to the merge-base. The BVT/build workflows do not execute the reference probe. - Pessimistic multi-CN BVT, UT, SCA, shared build, and UT coverage passed in the same run. This is not proof of a clean-baseline reproduction or the cancellation's root cause.
Actual Behavior
test/distributed/cases/publication_subscription/pub_sub4.sql failed three prepared executions:
| SQL line | Parameters | Expected | Actual |
|---|---|---|---|
| 180 | idx_meta_sub_db, visible_t |
PRIMARY(id), uk_u(u), idx_v(v): 3 rows | context canceled |
| 183 | idx_meta_local, local_t |
PRIMARY(id), idx_local(v): 2 rows | context canceled |
| 186 | idx_meta_sub_db, visible_t |
The same 3 subscription index rows after rebinding | context canceled |
All three use:
execute jdbc_index_info using @jdbc_schema, @jdbc_table;The file reports total:122, success:119, failed:3, ignored:0, abnormal:0. The remaining suite completed, so the initial readiness-retry messages in the job are not identified as the cause of this later query failure.
The prepared statement is:
prepare jdbc_index_info from
'select table_schema as table_cat, null as table_schem, table_name, non_unique,
index_name, seq_in_index as ordinal_position, column_name
from information_schema.statistics
where table_schema = ? and table_name = ?
order by non_unique, index_name, seq_in_index';Coverage then failed with prerequisites_ready: false and:
coverage merge blocked: a required producer did not publish a complete coverage profile;
no coverage verdict was calculated
CI Required subsequently rejected the failed prerequisite. These are downstream failures, not a separate insufficient-coverage result.
Expected Behavior
The prepared metadata query should return the subscription/local index rows across rebinding unless the user cancels it or another real execution error occurs. Internal normal cleanup must not cancel a still-required query. Identify and preserve the first error/cancellation owner rather than returning successful empty rows or weakening the BVT.
Steps to Reproduce
- Use the exact SHA above and the existing CI Compose + Proxy topology/configuration and BVT group selection.
- Run the existing, self-contained
test/distributed/cases/publication_subscription/pub_sub4.sqlwith mo-tester in normal comparison mode. Keep its publication/subscriber/local-table setup and prepared rebinding sequence. - Inspect lines 180/183/186 and the corresponding CN/proxy logs for the earliest cancellation/error owner.
This is a CI observation, not a deterministic local reproduction. Intermittency and equivalence to the old #29642 mechanism remain unproven; no sleeps/retries/skips or product workaround are proposed here.
Additional information
- BVT report artifact:
bvt-execution-compose-attempt-1(bvt-compose.log), with exact expected/actual results at 07:24:58 UTC. - CN/proxy log artifact:
Compose-multi-cn-e2e-bvt-test-docker-log(PROXY)-attempt-1. - Coverage downstream failure: job 113200611762.
- Historical related symptom: [Bug]: shared broadcast HashBuild can be canceled by one probe's normal early completion #29642; do not assume its white-box diagnosis explains this run.
Track this execution failure separately from the C02 design-only PR; rerun only the failed jobs and their affected dependents while preserving successful evidence.
Activity
iamlinjunhong commentedon Oct 8, 2026
Additional evidence from the exact PR head
85515260c95ab4b8f4b4e5d0c6ec7db835b41bf8and run37832670918:publication_subscription/pub_sub4.sql, row 180, preparedjdbc_index_infoexecution, with actual resultcontext canceled. The full report completed 45,124 checks with 44,490 successes, 1 failure, and 633 ignored;zz_accesscontrol/role_rule.sqlpassed all 206 checks.Starting shutdown...signal: terminatedat 20:37:38 UTC and an async task exit after51m17.958186202s; the job log reportscontext canceledwhile the BVT step was being torn down. This is direct evidence of test lifecycle termination, with the cancellation appearing during shutdown rather than as a stable SQL assertion.up/mainonly changespkg/sql/plan/query_builder.go,pkg/sql/plan/visit_plan_rule_test.go, and thezz_accesscontrol/role_ruleBVT case/result. It does not touchpublication_subscription/pub_sub4.sql, JDBC metadata execution, or the Compose/coverage harness.prerequisites_ready: falseandcoverage merge blocked: a required producer did not publish a complete coverage profile; no coverage verdict was calculated, so that check is downstream of the missing Proxy producer.The observed failure is therefore tracked as an independent multi-CN Proxy BVT timeout/termination candidate. The existing Compose + Proxy BVT workflow and
publication_subscription/pub_sub4.sqlprovide the reproduction path; no product workaround or test relaxation is proposed. The failed jobs for run37832670918will be rerun once after this evidence update.fix(objectio): isolate shared metadata load cancellation (#29779)