Skip to content

[CI] Ubuntu/x86 race UT TestAffectedRows shared embedded-cluster timeout #29124

Closed as not planned

Description

@iamlinjunhong

Summary

The Ubuntu/x86 race UT run for PR #27716 failed in the unchanged pkg/tests/partition:TestAffectedRows case while the shared embedded-cluster control plane was unavailable. This issue records the CI-load timeout evidence and is not a request to mask the test with retries or a blanket timeout increase.

Source PR and failed checks

Failure evidence

The job used the repository race UT mode:

go test -mod=readonly -vet=off -short -v -json -tags matrixone_test -p 2 -timeout 40m -race <embedded test packages>

The stable failure signature was:

pkg/tests/partition:TestAffectedRows
internal sql executor error: context deadline exceeded
internal error: createTestDatabase
--- FAIL: TestAffectedRows (374.53s)
failed to quarantine shared cluster generation 1: context deadline exceeded

The complete failed-job log also records:

  • embedded-cluster diagnosis: 23 clusters, total admission wait 23.97 minutes, maximum wait 5.01 minutes;
  • HAKeeper and LogService heartbeat/proposal timeouts, CN/TN cluster-refresh and schedule-command deadlines, and connection-refused errors after services became unavailable;
  • runner memory peak 17179824128 with memory.max=17179869184, but oom=0 and oom_kill=0;
  • no compile, vet, type-check, or stable product assertion failure.

Attribution controls

The exact failed head was tested with the same race/tags/CGo mode in an isolated control worktree: TestAffectedRows passed in 3/3 independent processes (19.01s, 24.69s, 20.25s). The repaired PR candidate at bb32033895c9e770ebb2e9dd40ba248446673f2e also passed 3/3 (23.22s, 24.81s, 24.81s). A clean official up/main at 3fe7840e34983141e579dee720741fb962847e4c passed the same command 3/3 (20.20s, 24.40s, 23.57s).

The PR diff does not modify pkg/tests/partition, TestAffectedRows, the partition test helper, or the CI harness. The observed failure is during database creation and shared-cluster admission, before the test's affected-rows assertions. The current PR's own changed closure passed its focused protocol, bootstrap, frontend, compile, sysview, upgrade, and maintenance tests plus configured CGo vet.

Reproduction

  1. Run the Ubuntu/x86 race UT workflow with PR head e6274217e453dc6e5ab47343c220cc23fbb5db59 under the normal embedded-stage package parallelism.
  2. Inspect the TestAffectedRows interval around createTestDatabase and the concurrent HAKeeper/LogService diagnostics.
  3. Compare repeated exact-head runs with a clean up/main control.

The evidence supports a non-deterministic shared embedded-cluster/control-plane timeout under CI load. This issue is recorded before the single permitted failed-job rerun for workflow run 35446450105.

Activity

  1. self-assigned this
    on Sep 20, 2026
  2. XuPeng-SH commented on Sep 24, 2026

    @XuPeng-SH
    Contributor

    Rechecked current main (a61e7710e2) against this TestAffectedRows CI failure. The 23.97-minute admission figure is aggregate across clusters, not this test’s wait; isolated 3/3 passes do not exclude a history-dependent or resource-pressure failure. The embedded-package runner already uses -p 1 (#29113) and prebuilt reuse (#29167), so repeating that scheduling change is not a fix. embed.Start still waits for admission with context.Background(), but that cancellation limitation has not been shown to initiate this incident, and manager.mu also spans file-lock waiting. No root-cause PR is justified yet. Next: reproduce the current normal package sequence under CI-equivalent limits, record first-failure admission/startup/SQL/cleanup phases plus owner/PID/generation and cgroup pressure, and compare fresh vs fixture-history runs. Keep the separate #27822 workflow-secret/sharding work separate; sharding would not isolate this test from the restore case within the embedded group. I will not mask this with retries or timeout padding.

  3. XuPeng-SH commented on Sep 24, 2026

    @XuPeng-SH
    Contributor

    Closing this historical CI-load report as not currently actionable, not as proof that the underlying failure is fixed. The recorded TestAffectedRows failure used embedded-package -p 2 and occurred before #29113 serialized package execution (merged 2026-09-20 07:29 UTC) and #29167 introduced prebuilt-binary reuse (merged 2026-09-20 13:29 UTC). Isolated 3/3 passes did not reproduce the shared-cluster failure, and no current-config first-failure trace establishes another cause. Reopen if TestAffectedRows fails again on a current head with package -p 1; include its own admission/startup/SQL/cleanup intervals, owner/PID/generation, and runner resource-pressure data. The aggregate 23.97-minute admission figure alone is not this test’s wait time. Do not mask recurrence with retries or timeout increases.

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