Skip to content

[Bug]: race UT catalog-route convergence timeout after controlled CN scale-down #31491

Closed as not planned

Description

@iamlinjunhong

Is there an existing issue for the same bug?

  • I checked open and closed issues for the exact test name, idle_lock_route_scale_down_test.go:167, and the route-convergence assertion. No tracker for this exact assertion timeout was found.

Related closed #29447 concerns the first DROP returning 20702. This occurrence fails the preceding cache-convergence barrier; the first DROP is not reached. Its scope clarification asks that new failures be tracked separately. Open #31184 concerns abrupt CN loss/restart, which is a different fault model. Neither closed issue is used as known-open-defect comparison evidence.

Branch Name

PR #30316 against main; comparison uses exact official main below.

Commit ID

Other Environment Information

  • MatrixOne ALL CI run 40594070985, attempt 1.
  • Ubuntu/x86 UT job 122505469002, runner amd64-mo-shanghai-8c16g-dkj59-runner-qnwmk.
  • CI invokes make ut UT_CONFIGURED=1 UT_PARALLEL=8 UT_TIMEOUT=40 UT_SHARD=all. The isolated embedded tests use prebuilt race binaries, matrixone_test, short mode and four round-robin batches. The failing test starts 3 CNs, retires two and observes the surviving CN's cached catalog routes.
  • Focused controls: Darwin/arm64, Go 1.27.1, repository controlled CGo wrapper, same race/tag/short mode and native inputs for PR and main. This is not a Linux reproduction or a reproduction of the full four-batch CI load.

Actual Behavior

The complete UT job log reports one failing test:

--- FAIL: TestDropDatabaseAfterCatalogCleanupDuringCNScaleDown (106.41s)
idle_lock_route_scale_down_test.go:167
Error: Condition never satisfied
Messages: all cached catalog routes to both retired CNs must converge

The test's one-minute route-convergence wait expires before its TN retirement/first-DROP assertions. No panic, race-detector report, compiler/type/static-analysis error appears in this failure. This does not prove the historical first-DROP product defect returned.

CI Required job 122539915698 only propagates matrixone-ci: failure from verifyResults; it is not a separate root failure. The run's independent ARM64 SCA runner loss is already recorded in #27742.

Expected Behavior

The cached routes should converge after controlled owner retirement and the test should reach its first-DROP assertion. Track this as a non-PR flaky candidate pending investigation of the failed cache state and keeper scheduling; no product or fixture workaround is proposed.

Steps to Reproduce

  1. Run the linked exact-head Linux/x86 race UT lane with the normal isolated-test batches.
  2. Select TestDropDatabaseAfterCatalogCleanupDuringCNScaleDown in pkg/tests/issues/isolated.
  3. Observe whether all surviving-CN catalog routes to both retired owners disappear within the existing one-minute bound. Preserve the assertion and do not add client retries or extend timeouts to hide the failure.

Focused command for both revisions:

.agents/skills/mo-dev/scripts/mo-cgo-test -race -short -tags=matrixone_test -p=2 -count=3 -timeout=5m -v -run '^TestDropDatabaseAfterCatalogCleanupDuringCNScaleDown$' ./pkg/tests/issues/isolated

Additional information

Four-part flaky-candidate evidence:

  1. The full UT log was inspected, including the exact assertion and terminal failed-case summary; this is one asynchronous convergence assertion, with no compile/type/security/static failure or stable product SQL error. The downloadable raw JSON diagnostic is truncated, so its absence of failure events is not used as evidence.
  2. The exact PR head passes three consecutive executions of this exact test using the command above. Terminal receipts and named PASS lines are retained.
  3. git diff --name-only 7e0c9d94fce444a2930c335135a3fc5860e1fe6a 79fe508da61429ec6ccfc7853f40915407425fc4 -- pkg/lockservice pkg/embed pkg/tests/issues/isolated .github optools Makefile is empty. The failing wait calls local GetLockTableBind, route-cache eviction and owner-retirement machinery; no PR formatter/catalog-proof code is on that transition. Earlier SQL setup succeeds. No new global state or test fixture is introduced by this PR.
  4. The same exact test passes three consecutive executions on the exact main source inputs with the same toolchain, native artifacts, race/tag/short mode and wrapper. Main controls ran as count=1 then count=2. The lane forbids creating or switching Git worktrees, so the control used a read-only Go overlay in the managed worktree: every one of the 41 PR-changed Go paths was restored byte-for-byte from main or removed if absent there. The selected test, LockService/embed, module/native/harness and runtime fixture inputs are unchanged; source hashes and the full overlay mapping are retained. This is explicitly a source-overlay control, not a second Git checkout.

The inability to reproduce the assertion locally on either revision is consistent with this flaky-candidate classification; no deterministic root cause is claimed. Existing current-head coverage and both enabled BVT groups passed. One failed-jobs rerun of the exact run will be requested after this record is published. The preceding request was rejected while the workflow was still running; attempt 1 remains current, so no rerun has yet been accepted.

Raw logs, command/exit receipts, source fingerprints and overlay metadata are retained outside tracked source under the task record. No repository code or test assertion was changed.

Activity

  1. self-assigned this
    on Oct 28, 2026
  2. XuPeng-SH commented on Oct 30, 2026

    @XuPeng-SH
    Contributor

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

  3. XuPeng-SH commented on Nov 5, 2026

    @XuPeng-SH
    Contributor

    按本轮 CI issue 清理范围关闭:历史失败发生在 CN scale-down 后 catalog route 收敛屏障,尚未捕获失败时缓存和 keeper 的完整状态,根因未确定;issue 已记录原分支和同期 main 各三次定向 race 控制均通过,但无法复现原 Linux 并发负载。此关闭不表示产品缺陷已证明修复,也未延长等待或削弱断言;若再次出现,请保留失败时 route、owner、keeper 状态并重开。

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