Skip to content

[Tracking]: 4.2-dev flaky CI/UT dynamic tracker #32744

Open

Description

@XuPeng-SH

Purpose

Long-lived dynamic tracker for 4.2-dev flaky CI/UT only. This issue is intentionally edited in place: add newly confirmed items, update recurrence evidence, and remove items after fixes are verified. It is not an archive of closed issues.

Maintenance rules

  • Add each new item with the next FLAKY-xxx ID, affected test/workflow, error signature, first/last observed time, and direct CI evidence.
  • Prefer reproduction on the pure 4.2-dev base or recurrence across unrelated changes. A single failure on a PR is not enough to attribute a branch-wide flake.
  • Do not count cancelled runs as failures.
  • Do not add deterministic PR regressions, product bugs without a flaky CI/UT symptom, or non-flaky SCA/configuration work.
  • Do not call something a data race unless the log contains an actual race-detector report such as WARNING: DATA RACE.
  • When a fix is merged and the relevant path is verified, delete the item from Active items instead of retaining a closed-item list. Add a short comment with the verification evidence when useful.
  • Keep this issue open and assigned to the current owner; update Last refreshed whenever the active set changes.

Last refreshed: 2026-11-25 UTC

Active items

FLAKY-001 — First-replay UT can time out before reaching the replay fault point

  • Scope: Ubuntu/x86 race UT; embedded LogService/TN/CN fixture on 4.2-dev.
  • Test: TestCNFirstReplayDisconnect in pkg/embed/firstreplay.
  • Observed signature: the 30-second condition wait expires with CN must reach its first catalog replay; nearby logs include hakeeper not ready, retry, scheduling/heartbeat timeouts, and connection resets.
  • Current assessment: startup/fault-point admission reliability problem; root cause is not established. Do not weaken the replay assertions or merely increase the timeout without identifying the blocked stage.
  • Evidence: 2026-11-13 UT failure, later UT failure with the same test.
  • Removal bar: identify the startup or scheduling cause, merge the fix, and verify the focused test plus relevant race UT path on 4.2-dev.

FLAKY-002 — Embedded-cluster control-plane timeout candidates

  • Scope: shared embedded-cluster CI environment; currently a watchlist item pending pure-base reproduction.
  • Tests with recurring signatures: TestShowAccountsStorageAggregation, TestMarkScanGuardSQL.
  • Additional candidate test: TestMoTableStatsAfterOtherClusterCloses in pkg/tests/issues/isolated.
  • Observed signatures: context deadline exceeded, waitAnyShardReadyLocked, HAKeeper/LogService timeouts, and connection refused across unrelated change sets. The additional candidate failed at table_statistics_owner_test.go:76 with driver: bad connection; nearby logs repeatedly report failed to get connection ID from HAKeeper: context deadline exceeded, internal error: getConnID, and MySQL unexpected EOF. CI duration was 59.83s.
  • Additional candidate context: the 2026-11-14 occurrence was on PR head c4abd9196eaecdb1a711824daecb8d5844f9b08e with target base 1a3e7fb6960995e9a143e5cc3d5a50f2feb0980f. The exact head passed the focused test locally in 27.53s with Go 1.26.4, CGo, -race -short -tags matrixone_test, -p=1 -parallel=2 -count=1 on Darwin/arm64; the whole command exited 0 and no race-detector report occurred. This is not a Linux/full-lane or pure-base reproduction. Because the PR changes frontend TCP FIN query cancellation, this connection-lifecycle failure cannot yet be excluded as PR-related merely from the shared timeout signature.
  • Current assessment: shared startup/resource-timing candidates, not confirmed product regressions and not observed race-detector reports. Separate deterministic assertion failures from cluster setup failures before acting. Keep the additional candidate under observation until a pure-base failure, same-SHA CI recurrence, or recurrence on an unrelated 4.2-dev change establishes attribution.
  • Evidence: storage aggregation failure, scan-guard and first-replay failures, multi-test control-plane timeout run, additional bad-connection/getConnID occurrence.
  • Next evidence needed: focused reruns on an exact 4.2-dev base with runner/load details; for the additional candidate, also compare the same PR head with its exact base while retaining TCP FIN and HAKeeper diagnostics; split this item if distinct root causes are established.
  • Removal bar: merge the relevant fixture/infrastructure fix and demonstrate stable reruns without suppressing the original assertions.

FLAKY-003 — Compose PROXY CI can fail before BVT on pinned MinIO client download

  • Scope: Docker Compose PROXY dependency provisioning; no SQL test has started when this failure occurs.
  • Observed signature: remote ADD of pinned mc.linux-amd64.RELEASE.2023-10-30T18-43-32Z fails with invalid response status 504; downstream coverage prerequisite failure is a consequence, not a coverage verdict.
  • Current assessment: external dependency provisioning reliability issue, not a SQL regression. Deterministic reproduction and the responsible upstream gateway are not established.
  • Evidence: 2026-11-09 Compose PROXY failure.
  • Removal bar: make dependency acquisition reliable and verifiable, then run Compose PROXY through BVT startup successfully.

FLAKY-004 — Invalid-timestamp ISCP HNSW watermark can remain at zero until the condition expires

  • Scope: 4.2-dev Ubuntu/x86 race UT; pkg/vm/engine/test.TestInvalidTimestamp, ISCP watermark progress after invalid-timestamp fault injection. This is currently a single-run candidate pending pure-base or unrelated-change recurrence.
  • Observed signature: change_handle_test.go:3194 reports Condition never satisfied; the follow-up assertion at line 3216 reports ISCP watermark did not reach expected state. The diagnostic is account=0 table=16390 job=hnsw_idx expectation=reach 1794618704295102164-0 observed=true found=true current=0-0. The CI test failed after 23.76s. This was an assertion/watermark-progress failure, not a race-detector report or a cancelled job.
  • First observed: 2026-11-14 01:11 UTC. Last observed: 2026-11-14 01:11 UTC.
  • Detailed context: the failure occurred on PR head c4abd9196eaecdb1a711824daecb8d5844f9b08e, target base 1a3e7fb6960995e9a143e5cc3d5a50f2feb0980f. The PR changes frontend TCP FIN query cancellation and does not modify ISCP, the HNSW watermark path, or this test; disjoint source alone is not treated as proof of branch-wide flakiness. On the exact PR head, the focused test passed locally in 1.28s and the package exited 0 with Go 1.26.4, CGo, -mod=readonly -race -short -tags matrixone_test -p=1 -parallel=2 -count=1 on Darwin/arm64. No base reproduction or Linux full-lane pass was obtained. A historical closed report contains the same HNSW watermark-stuck-at-0-0 signature, but it does not establish that this occurrence has the same root cause.
  • Evidence: failed UT job.
  • Next evidence needed: rerun the exact test on the pure target base and on the same CI head, then trace the HNSW job's invalid-timestamp handling, ISCP log application, and watermark owner if the zero-watermark state recurs. Distinguish an expected retry from a watermark that can no longer advance.
  • Removal bar: establish the blocked watermark stage and fix the owner or fixture timing without deleting the fault injection or weakening the watermark assertion; verify focused repetition and the relevant 4.2-dev race UT path.

FLAKY-005 — Checkpoint table-ID batch test can exhaust its checkpoint deadline

  • Scope: 4.2-dev Ubuntu/x86 race UT; pkg/vm/engine/tae/db/test.TestCheckpointTableIDBatch2, forced checkpoint/table-ID synchronization. This is currently a single-run candidate pending pure-base or unrelated-change recurrence.
  • Observed signature: db_test.go:14391 returns context deadline exceeded; the CI test failed after 26.27s. No WARNING: DATA RACE, panic, or global UT timeout was reported for this occurrence.
  • First observed: 2026-11-14 UTC. Last observed: 2026-11-14 UTC.
  • Detailed context: the failure used the same PR head c4abd9196eaecdb1a711824daecb8d5844f9b08e and target base 1a3e7fb6960995e9a143e5cc3d5a50f2feb0980f. The PR changes frontend connection cancellation, not TAE checkpoint code or this test. On the exact PR head, the focused test passed locally in 1.31s and the package exited 0 with Go 1.26.4, CGo, -mod=readonly -race -short -tags matrixone_test -p=1 -parallel=2 -count=1 on Darwin/arm64. This focused pass does not reproduce Linux full-lane contention and does not establish that the underlying checkpoint delay is fixed. A historical closed report describes a checkpoint timeout in this test with incomplete table-ID progress, but shared symptoms alone do not prove the same cause.
  • Evidence: failed UT job.
  • Next evidence needed: rerun on the pure target base and retain checkpoint control, sync-table-ID, WAL, and runner-load evidence around the deadline; identify whether the forced checkpoint failed to start, stalled, or merely exceeded the fixed wait budget.
  • Removal bar: identify and fix the blocked checkpoint phase or completion-condition defect while retaining the original checkpoint/table-ID assertions; verify focused repetition and the owning 4.2-dev TAE race UT path without retries or blanket timeout increases.

FLAKY-006 — TestTxnManager1 retains scheduler-dependent commit ordering on 4.2-dev

  • Scope: 4.2-dev Ubuntu/x86 UT; pkg/vm/engine/tae/txn/txnimpl.TestTxnManager1. This is a high-confidence base-test candidate; a pure-base rerun has not yet been performed.
  • Observed signature: the exact ordering assertion expected []int{1, 2, 3, 4} but observed []int{1, 3, 2, 4}. The failing PR head d303c250c35ad305495f097b4bd62d9fbad5cc03 still uses time.Sleep(100ms) in the prepare callback and time.Sleep(10ms) in the competing goroutine at txn_test.go:800 and txn_test.go:818, so scheduler timing can still invert steps 2 and 3.
  • First observed: 2026-11-25 UTC. Last observed: 2026-11-25 UTC.
  • Base/PR separation: PR [4.2-dev] Fix transactional index authorization and utf8mb4 column modification #33163 targets 4.2-dev with merge base 1d0a8f19f5938ffded16ab06e1521d7328e6dfd5; its 26 changed files do not touch txn/TAE code. The same failure and sleep-based mechanism were previously fixed on main by [Bug]: TestTxnManager1 relies on sleeps for commit ordering #28709 / test(txn): make commit ordering deterministic #28714 (66376367adfd6479739dad88ea2affa1e64cb86a), but comparison of that fix with 4.2-dev is diverged, and the failing 4.2-dev head retains the old test body.
  • Evidence: run 45534287859, failed UT job 138937026822.
  • Next action: backport the deterministic channel/barrier synchronization from test(txn): make commit ordering deterministic #28714 rather than increasing sleeps or accepting both orders; run the focused test repeatedly and then the owning 4.2-dev package/UT lane.
  • Removal bar: the synchronization fix is present on 4.2-dev and the focused repetition plus relevant UT path pass without changing the exact ordering assertion.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions