Skip to content

[Bug]: Correlation race UT exhausts shared execution deadline during shape-matrix reset #30461

Closed

Description

@ck89119

Is there an existing issue for the same bug?

  • I have checked the existing issues.

Searched open and closed issues for the full root name, grouped_aliases, 29876, and correlation/shared-deadline signatures. #30322 records the published-view account cleanup deadline; #30454 records independent deferred DROP DATABASE cleanup deadlines. This occurrence first fails during the body matrix's reset DELETE after the parent execution budget expires, before publication setup. Main PR #30426 already changes this test's execution-deadline ownership; this report retains the distinct original CI signature and the unresolved underlying latency.

Branch Name

issue-29974-main, PR #30115.

Commit ID

3b3f10d947954d7469f98959c1653f9c5f0f2bcc.

Other Environment Information

Actual Behavior

The complete job log identifies one failing root, TestIssue29876CrossDatabaseCorrelation (149.15s), and its subtest disjoint/grouped_aliases (5.29s).

issue_29876_test.go:43 <- reset at line 61 <- subtest at line 85
Received unexpected error: context deadline exceeded

The root starts at approximately 2026-10-16 10:23:48 UTC. It creates one two-minute context before connecting/creating both databases and reuses it across all SELECT/DELETE shapes. At 10:25:48 UTC, reset's delete from <target>.records fails; subsequent work and deferred database cleanup also report deadline errors.

The retained output also shows HAKeeper/logservice request timeouts, queued Dragonboat LocalTick batches and a disk-cache object read spending approximately 937ms in io.ReadFull. These are correlated delay symptoms, not proof of the original stall's cause. No race-detector report, compilation failure or assertion of incorrect correlation results is reported. CI Required fails downstream of this producer.

Expected Behavior

Independent correlation scenarios must own their operation/scenario budgets rather than inheriting a setup-wide deadline already consumed by earlier scenarios. Preserve the existing timeout durations and every row/affected-row, prepared reuse, publication and cleanup oracle. Investigate underlying logservice/storage/scheduling delays separately; do not hide them by raising timeouts, adding retries/sleeps or skipping cases.

Steps to Reproduce

The authoritative reproduction is the Linux CI run above. Focused diagnostic command:

GOTOOLCHAIN=go1.27.1 .agents/skills/mo-dev/scripts/mo-cgo-test \
  -v -short -race -tags=matrixone_test -count=1 -timeout=300s \
  -run '^TestIssue29876CrossDatabaseCorrelation$' ./pkg/tests/issues

A local focused run is not equivalent to the full Linux fixture history or runner contention. Its results are tracked in the PR validation record; no clean-main reproduction or Linux stability claim is made here.

Additional information

The PR's production changes reconcile LAG/LEAD result/default domains and distinguish quoted literal expression keys. The failing reset statement is a plain DELETE without a window, projection cache identity collision, or changed conversion. It does not exercise those new reconciliation arms. No fixture or deadline in this root was changed by PR #30115.

Fetched main already contains 47b9690d7caec56b589fdefaf0684177412cffb2 (#30426), which assigns the same two-minute durations to individual operations, shape subtests, ordered reuse and publication scenarios, and scopes prepared rows cleanup per iteration. Absorbing this existing upstream correction is preferable to duplicating it in the LAG/LEAD patch. That correction does not by itself explain the original Raft/storage delay or establish that every deferred cleanup deadline is fixed; #30454 remains a separate investigation.

Activity

  1. added
    kind/bug
    on Oct 17, 2026
  2. self-assigned this
    on Oct 17, 2026
  3. XuPeng-SH commented on Oct 17, 2026

    @XuPeng-SH
    Contributor

    Verified the reported shared-deadline ownership defect is corrected on latest official main b111224. Independent named scenarios/operations now receive the existing two-minute budget instead of consuming one setup-wide deadline. Assertions, bounded waiters, cleanup checks and the two-minute duration remain; no retry or skip was added.

    The actual TestIssue29876CrossDatabaseCorrelation root and its subtests ran successfully on Linux/amd64, Go1.27.1, CGo, short/race/matrixone_test (-count=1); root elapsed 10.54s, owning selection terminal0. The prior full successful CI39024356589 also executes this root with the same corrected ownership. Closing this test-budget defect. This does not claim the original storage/control-plane slowdown is understood or fixed; remaining startup and catalog-cleanup latency stays tracked by #30453 and #30454.

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

Metadata

Metadata

Assignees

Labels

kind/bug

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions