Skip to content

[Bug]: race UT queue setup exhausts its deadline and termination can hide failures #33156

Done

Description

@XuPeng-SH

Is there an existing issue for the same bug?

  • I searched open and closed issues for TestProducer_EnqueueFull2 and run 45340518333; no matching issue was found.

Branch Name

main (observed in PR #33133 CI)

Commit ID

CI head 47a691fe61df0bce9bab07cea80fe0f0a714de39; the relevant test and runner behavior also exists at main 568f0f4fdee3c34373f27b04316a2adf7d32a78a.

Other Environment Information

Actual Behavior

pkg/datasync.TestProducer_EnqueueFull2 failed with context deadline exceeded while dequeuing. The test starts a one-second context before preparing 20 payloads, each of which starts and stops a transaction manager. The logged preparation occupied about 0.9 seconds; a full enqueue also uses a 100 ms retry interval. The existing second-batch notification is sent before the worker actually reaches the full queue.

The overall race UT later reached its 120-minute hard limit. The termination path exited before the normal analyzer generated failure files; the uploaded raw report was then truncated to its head and tail. In this run, the pkg/tests/issues batch failure occurred in the omitted middle, so its failing test and assertion cannot be identified from the artifact.

Expected Behavior

The queue test should observe a real full-queue transition and verify delivery without spending its hang guard on unrelated fixture setup. A terminated UT run should retain bounded failure identities and useful context even when the raw report exceeds the artifact budget, without treating incomplete cases as confirmed failures.

Steps to Reproduce

  1. Inspect the linked Linux race UT job and its diagnostic artifact.
  2. Run TestProducer_EnqueueFull2 under race instrumentation with sufficient scheduling or setup delay to consume its shared one-second budget. The linked run is the observed failure; a local macOS race run passed.
  3. Terminate a UT run after a test failure but before normal report analysis, with a raw JSON report larger than the artifact budget and the failure in its middle. The current top-slowest summary and head/tail snapshot can both omit it.

Additional information

The same CI run also timed out in TestIssue29492MultiCNCancellationCleanup/text after KILL QUERY. Its cause has not been established and is separate from the fixes above. CI repository PR #476 prioritizes failure files when they exist, but the MatrixOne hard-termination path does not currently generate them.

Activity

  1. added
    kind/bug
    on Nov 24, 2026
  2. added a commit that references this issue on Nov 24, 2026
    1b50c67
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