Skip to content

[Bug]: race CI TestShowTableStatusWithIndexes cleanup DROP DATABASE times out #31545

Closed as not planned

Description

@iamlinjunhong

Is there an existing issue for the same bug?

  • I have checked the existing issues.

Open and closed searches for the exact test, source filename plus deadline, and SHOW TABLE STATUS cleanup/bad-connection signatures found no matching tracker. Closed #30510 concerns a table-cache memory fault, not this cleanup timeout.

Branch Name

codex/loom/develop/86e7d05d310fe55a40e031b12bde910758fab5408771a081b443bc8c3bd61818

Commit ID

ab3575c

Other Environment Information

Failing CI: Linux/x64, Go 1.27.1, race detector, matrixone_test tag, CGo native libraries; issues-package execution used batched prebuilt race test binaries. The runner reports 8 CPU quota and 16 GiB memory. No OOM kill is present in the captured diagnostics.

Local comparisons: Go 1.27.1, darwin/arm64, GOMAXPROCS=4, the repository CGo wrapper, matching race/short/tag mode. These are not Linux reproductions.

Actual Behavior

PR #31515, exact head above, failed run 40631852505, attempt 1.

Normalized signature from the complete failed job log:

TestShowTableStatusWithIndexes
  table_statistics_owner_test.go:128 (cleanup DROP DATABASE):
    Received unexpected error: context deadline exceeded
  table_statistics_owner_test.go:130 (subsequent catalog check):
    Received unexpected error: driver: bad connection
--- FAIL: TestShowTableStatusWithIndexes (31.69s)

The public test actions reached final rollback/AUTO_INCREMENT verification; the failure is in the deferred cleanup, whose rollback, DROP and catalog verification share a 10-second context. Log-service heartbeat/proposal timeouts also appear during this interval. The underlying reason for slow cleanup is not established; no deterministic product error or race-detector report is claimed.

Expected Behavior

The regression test and its cleanup should finish reliably, with its original SHOW result, ownership and cleanup oracles preserved.

Steps to Reproduce

The CI observation used its complete issues batch, so the focused command below does not reproduce its surrounding workload:

GOMAXPROCS=4 .agents/skills/mo-dev/scripts/mo-cgo-test \
  -p=1 -race -short -tags=matrixone_test -v -count=1 -timeout=180s \
  -run '^TestShowTableStatusWithIndexes$' ./pkg/tests/issues

Execute the command three sequential times at each exact revision in the comparison below. Sources were exported with git archive <SHA> into temporary directories, and git diff --exit-code <SHA> -- was empty before testing. No new Git worktree was created. Native inputs are identical between both revisions and were borrowed read-only, with exact temporary symlinks removed by preinstalled cleanup traps.

Additional information

Non-PR flaky-candidate evidence:

  1. Complete gh run view 40631852505 --log-failed and full UT job logs inspected. The only failed test is the cleanup timeout above, not compilation/static checks, a race report, panic or deterministic result assertion. The diagnostic artifact explicitly truncates its large JSON stream; attribution uses the complete failed-job excerpt, not missing artifact contents.
  2. Original PR head ab3575cd4136fbc228f66b5d7342d059b6ea2c60: three consecutive focused race/short/tag/CGo executions passed.
  3. Full PR diff only changes strict CSV boundary probing plus external/SQL-integration tests. It does not change the issues case, embedded cluster lifecycle, SHOW/catalog/index statistics, DROP DATABASE, or CI harness. Dispatch base/head comparison is empty for pkg/tests/issues, pkg/embed, pkg/frontend, pkg/vm/engine/disttae, pkg/sql/plan/function, .github, and optools. ReadFileOffset is invoked by external-file planning; this test uses ordinary tables and no LOAD/external scan. The modified external tests completed at 04:53 UTC, before the failed SHOW case at 05:09 UTC; modified SQL-integration tests ran after 05:30 UTC.
  4. Clean official main f97056d1107a89854bfac2c06202698e3aafd41e: three consecutive identical focused executions passed (6.17s, 7.12s, 6.29s test-body durations; all exit 0). Original-head durations: 6.44s, 6.03s, 7.57s.

The same exact-head CI report shows the external package and strict-load SQL scenarios passed. Post-rebase repair validation also passes the external package, frontend CSV replay and all seven strict-load SQL cases. There is no proposed unrelated code change or weakened assertion to hide this failure. These controls classify a non-PR flaky candidate; they do not identify a root cause, and inability to reproduce the timeout locally is not a claim that it is fixed.

One failed-jobs rerun of run 40631852505 will be requested after this issue is created, with acceptance verified. A separate necessary PR rebase resolves a real CSV configuration-helper merge conflict.

Activity

  1. self-assigned this
    on Oct 28, 2026
  2. iamlinjunhong commented on Oct 29, 2026

    @iamlinjunhong
    ContributorAuthor

    New matching Linux/amd64 occurrence from PR #31703, exact head 276763b2c99662370cec9fe0a35be9ad7f19acf8, base d950fdcda9d7882eae542917c87f8dab637bc084:

    • Run 40840924683, attempt 1, UT Test on Ubuntu/x86 job 123337471555, Unit Testing (make ut). Go 1.27.1, CGO/native libraries, race detector, -short -tags matrixone_test.
    • Exact case: TestShowTableStatusWithIndexes (25.09s). table_statistics_owner_test.go:128 reports context deadline exceeded while the deferred cleanup executes DROP DATABASE; the cleanup shares a 10-second context with rollback and the final catalog check. This matches the normalized cleanup failure and contract analyzed in this issue.
    • The complete 51,949-line job log was inspected. The other failed test is the PK reconnect snapshot/frontier assertion tracked separately in [Bug]: PK reconnect coverage test flakes on SnapshotTS/frontier assertion #31744. No build/type/static failure, race-detector report, test timeout panic, or OOM kill was observed. CI Required only propagates the failed producer jobs.

    Independent comparison evidence is the issue's already-linked PR #31515 run 40631852505/job 122630208002, head ab3575cd4136fbc228f66b5d7342d059b6ea2c60; GitHub confirms the failed Linux/amd64-labelled UT job belongs to that unrelated PR. The existing issue body, authored by a repository member, identifies the same shared cleanup context and exact failing case; the underlying reason for slow cleanup remains unproven.

    The full seven-file PR #31703 diff and reachable call paths were checked: it changes LOCAL upload framing/discard/drain plus a LOAD-only finalization hook and corresponding tests. This case performs ordinary SHOW/DDL/DML and never uploads a LOCAL file. handleShowTableStatus and the ordinary packet Conn.Read implementation are byte-identical between dispatch base and head; cleanup/context ownership, txn/logtail/statistics code, the failing test and CI harness are unchanged. Added SQL integration tests execute in a separate package binary.

    Current exact-head evidence for PR #31703's own closure is already green in its coverage diagnostics artifact: frontend package 40.046s, sqlintegration package 268.958s, and TestKillLoadLocal 0.270s. SCA on Linux/arm64 also passed. These results are reused; no unrelated SHOW fix, assertion relaxation, skip, or fresh local SHOW stress run was added.

    This records the occurrence using the known-open-defect comparison route, not a claim that the underlying defect is fixed. Run 40840924683 has no accepted rerun yet; one failed-jobs rerun will be requested after the remaining job signatures are closed.

  3. XuPeng-SH commented on Oct 30, 2026

    @XuPeng-SH
    Contributor

    本轮合并后范围核对:#31933 已合入,但其说明明确不关闭本 issue(#31545)的独立缺陷;共享升级启动预算/生命周期修正及当前局部测试通过,不等于本问题已有对应因果修复。故保留现研发负责人,不据此转测;继续沿本 issue 已记录的失败机制完成开发跟进。未重复宣称历史反例是新 main 实测,本轮没有运行新测试。

  4. XuPeng-SH commented on Nov 5, 2026

    @XuPeng-SH
    Contributor

    按本轮 CI issue 清理范围关闭:两次历史 Linux race CI 都报告 cleanup DROP DATABASE 超时,底层变慢原因未确定;issue 已记录原分支与同期 main 各三次定向 race 控制均通过。未复现不等于已修复,也没有放宽 cleanup 断言或声称找到共同根因。若再次发生,请保留完整日志、当时集群状态和资源指标并重开。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

kind/bugneeds-triage

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions