Skip to content

[CI]: initial ISCP consumer stalls in TestIssue29400DropDatabaseRCReclaimFailureRollsBackWholeDatabase #30129

Closed

Description

@iamlinjunhong

Failure

UT Coverage on Linux/x64 fails in TestIssue29400DropDatabaseRCReclaimFailureRollsBackWholeDatabase at pkg/tests/issues/issue_29400_test.go:1091, before fault injection or DROP DATABASE rollback is exercised:

Error: Condition never satisfied
Messages: initial ISCP consumer did not advance
ISCP-Task retry failed, err: internal error: unexpected rows count: 8192
ISCP-Task check lease failed {"error":"internal error: unexpected rows count: 8192"}

The initial FULLTEXT2 consumer does not advance during the existing 120-second wait. Its test fails after 137.81 seconds, including cleanup. The raw diagnostic shows lease errors during that wait. The abnormal logical row count's origin has not been established.

Source and complete diagnostics

Non-PR flaky candidate evidence

All four comparison requirements were checked:

  1. Complete failed-job logs and raw failed-test output were inspected. This is an asynchronous progress assertion, with no compilation, type, static-analysis, safety-gate, or runner phase timeout error in the failed case.
  2. The exact failed test passes in three consecutive independent invocations at the exact PR head: 34.82s, 35.70s, 35.67s, all terminal exit 0.
  3. The PR changes query-level rank-option parsing, RankOption propagation/serialization, and IVF nprobe lowering. The ISCP lease SQL has no BY RANK or UNION and does not use an IVF index. The existing non-nil AST guard prevents the new rank-option parser from running; DeepCopyRankOption(nil) is unchanged; the plan contains no RankOption payload. ISCP, task scheduling, Result.ReadRows, Batch logical cardinality, FULLTEXT2 startup, the failing test, its fixture, and the CI harness are unchanged. The reachable failure path is CheckLeaseWithRetry → GetTaskRunner → internal SQL → readSingleTaskRunner → Result.ReadRows; a lease error skips the executor's worker submission. Shared generic planner/parser dependencies were inspected rather than assumed unrelated merely from file names.
  4. A clean detached official-main checkout at 8586fa08715c868cab997d11d2687a76b8cc360f passes the same command in three consecutive independent invocations: 35.97s, 36.66s, 35.79s, all terminal exit 0. Both source trees remain clean, and temporary native links were removed without changing their targets.

The comparison used Go 1.27.1, CGO enabled, matrixone_test, -short -count=1 -v -timeout=20m -p=8 -covermode=set, and the same complete 505-package coverpkg list as CI. The lists were compared and are identical. No race flag was added. The repository's mo-cgo-test wrapper supplied the verified native dependency closure.

Limits: CI ran the full suite on Linux/amd64; these focused comparisons ran on Darwin/arm64. CI exported JSON, while the focused runs retained verbose text logs. This supports the defined non-PR flaky-candidate classification, not a claim that the Linux full-suite failure or abnormal row count has been fixed. All six local logs and their SHA-256 digests are preserved in the lane's comparison evidence.

Reproduction

Use the existing coverage lane with its complete package scope, or run the focused case with the repository CGo wrapper:

cover_pkgs=$(go list -mod=readonly ./... | grep -v 'driver\|engine/aoe\|engine/memEngine\|pkg/catalog' | paste -sd, -)
.agents/skills/mo-dev/scripts/mo-cgo-test \
  -mod=readonly -count=1 -short -v -tags matrixone_test \
  -timeout=20m -p=8 -covermode=set \
  -coverprofile="$TMPDIR/iscp-initial-tail.cover" -coverpkg="$cover_pkgs" \
  -run '^TestIssue29400DropDatabaseRCReclaimFailureRollsBackWholeDatabase$' \
  ./pkg/tests/issues

The focused invocation currently passes on both compared revisions. To investigate the observed failure, retain the full-suite coverage workload and inspect ISCP lease result cardinality and consumer startup before the initial-tail assertion.

Follow-up

Track this CI failure independently of PR 30002. Request one failed-jobs rerun of run 38416395255 after the original workflow reaches a terminal state. Do not increase the assertion timeout or modify unrelated production code merely to make this PR green.

Activity

  1. iamlinjunhong commented on Oct 13, 2026

    @iamlinjunhong
    ContributorAuthor

    Current comparison and terminal workflow evidence for the same failure:

    • Run 38416395255, attempt 1, has completed. The full gh run view --log-failed output (2,529 lines) and the additional Required job log have been inspected. UT Coverage job 115362962874 remains the sole failed test producer; Coverage job 115389745004 is blocked by its missing complete profile. CI Required job 115405928371 reports matrixone-ut-coverage: failure. Ordinary Ubuntu/x86 UT, SCA, shared build and both BVT lanes passed.
    • Exact PR head remains bddb64bba1f9c8f11235f04969428369c2a9c76a. Its three independent focused passes recorded above and their log hashes are unchanged and verified.
    • Official main is now de4bec0c71dc8b74559506e79144eaf919c5a637. A clean checkout of this current revision passes the same focused coverage command three consecutive times: 35.73s, 36.57s, 35.80s, each terminal exit 0. The full 505-package coverpkg set remains identical to the CI set. Both trees are clean and the temporary native dependency links were removed.
    • The three new main commits change catalog name bindings, logtail read barriers and set-operation planning. Catalog and logtail paths can affect the fixture/startup timing, so the old-main comparison was refreshed rather than assumed valid. They do not make the PR's guarded rank-option/UNION/IVF branches reachable from the direct lease SELECT. Neither the PR nor these new main commits change the CI harness.

    The four flaky-candidate conditions remain satisfied: complete async-failure diagnostics, three exact-PR passes, no PR changes to the reachable failure mechanism, and three clean-current-main passes with matching CGO/tags/coverage instrumentation. Local comparisons still run on Darwin/arm64 rather than the Linux/amd64 full-suite runner. This is a non-PR flaky candidate, not proof of the abnormal 8192 row count's root cause or a fix.

    Request one failed-jobs rerun of this terminal run. No unrelated production changes or assertion timeout increases are proposed.

  2. added a commit that references this issue on Oct 20, 2026
    a69f7e0
  3. added
    ai-easy
    on Oct 20, 2026
  4. Ariznawlll commented on Oct 20, 2026

    @Ariznawlll
    Collaborator

    测试版本

    • 分支:执行时最新官方 main,完整 commit 76e152a1dd02b7875829027117a6f6344d1f8d33;本地测试启动后 main 前进到无关压缩流修复 cce20b9ac791bc70693d9109906567026cddcaec,本地结论对应前一 SHA。
    • 修复:MatrixOne PR #30659,merge commit a69f7e066deece1fd3efcb8cc1dad8d343936b60 已核实进入测试 SHA。修复将配额测试的事务模式设置收敛到专用 account,而非整个 CN。
    • 本地:macOS arm64 隔离官方 main 工作树,Go 1.27.1、CGO 和 matrixone_test,未触碰主工作区;CI:PR head 2d6a78bb19e7406361275e6624c8a92598c18ef0 的 Linux/x86 UT Coverage。

    原问题验证

    原失败发生在完整 Linux/x86 UT Coverage:TestIssue29400DropDatabaseRCReclaimFailureRollsBackWholeDatabase 等待初始 ISCP consumer 前,lease 查询报 unexpected rows count: 8192,120 秒内不能推进;先前只跑该单例通过不能代表修复。

    本轮在含修复的 main 上将 TestIssue26087ConcurrentDataBranchQuota 与原失败的 TestIssue29400DropDatabaseRCReclaimFailureRollsBackWholeDatabase 放在同一 pkg/tests/issues 定向 invocation 中,-short -tags matrixone_test -count=3 通过,终端退出 0,包耗时 137.529 秒。更关键的是 #30659 的完整 Linux/x86 UT Coverage job 通过,覆盖了原先失败的同一 CI 测试层,不再只依据本地单例。

    Happy Path 覆盖

    • 配额测试与原 ISCP 消费者测试同包连续定向运行 3/3 通过;原测试能完成初始消费者等待并继续其已有的回滚断言,没有出现原先的 120 秒等待失败。
    • 完整 UT Coverage、下游 Coverage、CI Required 均为 SUCCESS。与原失败的 Linux/x86 Coverage 层保持一致。

    Unhappy Path 覆盖

    • test: isolate quota transaction mode from daemon tasks #30659 的新测试在配额测试活跃期间分别断言:专用 tenant 使用 optimistic/SI,而系统 account 仍是 pessimistic/RC,并验证清理时恢复设置。PR 描述中的旧实现负对照在该系统 account 断言上失败(实际 optimistic),新实现通过;这区分了“测试污染被消除”和“单纯等待更久”。
    • PR 的 runtime 并发设置测试以及 pkg/common/runtime race 测试通过。原故障中的 8192 行计数没有在本轮单独注入或再次复现;本结论不宣称修复引擎所有混合事务模式下的冲突校验语义。

    白盒验证

    • 对 #30659 的改动 核对:配置范围从 CN-wide 改为测试 account,系统 daemon/task 连接保留默认模式;测试结束恢复设置,且配额测试加入双 account 实际模式断言。这与既有 CI 失败前的任务连接模式污染链路相符。
    • 本地定向对实际合入 main 运行 3 轮;上述旧实现负对照及 race 结果来自修复 PR 报告,并非本地重新执行。

    回归测试

    • 回归属于共享集群测试夹具和内部 daemon 模式隔离,已有 Go UT、运行时测试及完整 Linux/x86 UT Coverage 覆盖;不增加重复的外部 SQL MOTR。test: isolate quota transaction mode from daemon tasks #30659 的普通 Ubuntu/x86 UT 及多 CN BVT 也通过。
    • 完整 Linux/x86 UT Coverage 本次有 1 次成功运行;原故障曾呈现非稳定性,1 次完整通过不等于长期不再发生。未额外启动昂贵 CI 重跑,后续 nightly 仍应观察。

    测试证据

    • 原失败及旧比较证据见 issue 正文。本地修复后同包两例 -count=3 PASS,耗时 137.529 秒;完整 CI 及必需汇总 job 链接如上。
    • 修复 PR head 2d6a78bb19e7406361275e6624c8a92598c18ef0、merge commit a69f7e066deece1fd3efcb8cc1dad8d343936b60、执行时 main 完整 SHA 如上,便于重放。

    测试结论

    测试通过。

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

Metadata

Metadata

Assignees

Labels

ai-easykind/bug

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions