Skip to content

[Bug]: prepared JDBC index metadata returns context canceled in multi-CN Proxy BVT #29704

Closed

Description

@ck89119

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

  1. Use the exact SHA above and the existing CI Compose + Proxy topology/configuration and BVT group selection.
  2. Run the existing, self-contained test/distributed/cases/publication_subscription/pub_sub4.sql with mo-tester in normal comparison mode. Keep its publication/subscriber/local-table setup and prepared rebinding sequence.
  3. 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

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

  1. self-assigned this
    on Oct 8, 2026
  2. added
    kind/bug
    on Oct 8, 2026
  3. iamlinjunhong commented on Oct 8, 2026

    @iamlinjunhong
    Contributor

    Additional evidence from the exact PR head 85515260c95ab4b8f4b4e5d0c6ec7db835b41bf8 and run 37832670918:

    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.sql provide the reproduction path; no product workaround or test relaxation is proposed. The failed jobs for run 37832670918 will be rerun once after this evidence update.

  4. added a commit that references this issue on Oct 9, 2026
    d2a0055
  5. added
    severity/s0
    and removed on Oct 9, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

kind/bugseverity/s0

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions