Skip to content

[Bug] CI BVT fulltext2_copy_alter misses expected rows #28985

Closed

Description

@XuPeng-SH

Problem

The CI BVT case fulltext2/fulltext2_copy_alter.sql returns an incomplete result on the current base.

Observed in PR #28976, run 35060323150.

At row 93:

Expected:

id[-5,64,0]
100
101

Actual:

id[-5,64,0]

The PR changes only optools race-UT scheduling and does not touch fulltext execution or this BVT case, so this is being tracked as a base/shared BVT regression.

Requested investigation

  1. Reproduce the failure on the current base.
  2. Check whether the copied/altered fulltext index or query result loses rows 100 and 101.
  3. Add or update a focused regression test, then restore the BVT expectation.

Activity

  1. added
    kind/bug
    on Sep 16, 2026
  2. self-assigned this
    on Sep 16, 2026
  3. XuPeng-SH commented on Sep 16, 2026

    @XuPeng-SH
    ContributorAuthor

    Root-cause tracking update:

    Therefore no new MatrixOne patch is justified yet. Keep this issue open for a valid multi-CN/CI reproduction rather than changing expectations or claiming the existing symptom is fixed.

  4. 4 remaining items

  5. Ariznawlll commented on Sep 27, 2026

    @Ariznawlll
    Collaborator

    测试版本

    • MatrixOne main commit:5be6cd90b501da225be591ffffe6000bf01f515e
    • 部署:本地 2 CN / 1 TN / 1 LogService,分别直连 CN1 16001 与 CN2 16002

    原问题验证

    按照 fulltext2_copy_alter.sql 的 docs_cdc 路径执行 3 个独立数据库:建 FULLTEXT2、执行无关列 COPY ALTER、等待替换索引 tag=0 base、在 CN2 预热 base generation、插入 id 100/101,再等待隐藏索引 cdc_tail 的 tag=1 chunk_id 严格推进。最新 main 仍稳定复现新增行无法被 MATCH 查询的问题。

    Happy Path 覆盖

    • COPY ALTER 后替换索引 base 就绪。
    • 原有 quantum 行在 CN1、CN2 均稳定返回 1,3,5。
    • 底表 LIKE '%neutrino%' 均返回 100,101。

    Unhappy Path 覆盖

    • CN2 在插入前预热替换索引 generation。
    • 插入后确认 durable CDC tail 已推进,而不是仅等待固定时间。
    • 新词 neutrino 分别从 CN1、CN2 查询,3 轮均为空。

    白盒验证

    故障发生时 base 和 CDC tail 都已持久化,旧 base 词仍可查询;缺失仅发生在 COPY ALTER 后追加进 tail 的新行。执行插入的 CN1 与预热的 CN2 同时缺行,不能只归因为远端 CN 的最终一致缓存窗口。

    回归测试

    当前仓库中的 test/distributed/cases/pessimistic_transaction/fulltext2/fulltext2_copy_alter.sql 仍带 -- @skip:issue#28985。本次结果说明该 skip 暂不能移除,也不能把空结果录入 MOTR 作为正确基线。

    测试证据

    三轮结果完全一致:

    • LIKE(neutrino)=100,101
    • MATCH(neutrino)@CN1=NULL
    • MATCH(neutrino)@CN2=NULL
    • MATCH(quantum)@CN1=1,3,5
    • MATCH(quantum)@CN2=1,3,5

    测试结论

    测试不通过。

  6. Ariznawlll commented on Oct 9, 2026

    @Ariznawlll
    Collaborator

    测试版本

    原问题验证

    检查三条最近合入 main 的 PR CI 日志,确认 test/distributed/cases/pessimistic_transaction/fulltext2/fulltext2_copy_alter.sql 实际执行,而不是被跳过或仅凭整套 CI 的绿色状态推断。该用例执行无关列 COPY ALTER、预热旧 base generation、插入 id 100/101、等待 CDC tail 和缓存刷新,并断言全文 MATCH('neutrino') 返回 100、101。

    PR CI head SHA 多 CN BVT 逐文件结果
    #29673 da90af8ff8c6451a4e2a551803807ff97800c7f0 run 37871274187:50/50 成功、0 失败、0 跳过;23.321 秒
    #29754 714811397f56c35e5974a80a5b590bb30f55c67b run 37878560261:50/50 成功、0 失败、0 跳过;23.422 秒
    #29765 954fa8a0b4241a983c2a7f8117ecbe9f95f1bd8b run 37887660343:50/50 成功、0 失败、0 跳过;23.417 秒

    三次均未再出现原报告的 id 100/101 缺失。最新合入的 #29472 对应检查在本次核查时仍运行中,未计入以上通过次数。

    Happy Path 覆盖

    1. 既有 quantum 文档在 COPY ALTER 前后继续可检索;BVT 使用底表 LIKE 对照全文 MATCH。
    2. 替换索引的 tag=0 base 与新增行的 tag=1 CDC tail 就绪后,缓存刷新收敛,MATCH('neutrino') 返回 100、101。三次近期多 CN CI 均执行并通过。

    Unhappy Path 覆盖

    1. 用例先查询以预热 COPY ALTER 后的 base-only 缓存,再写入只存在于 CDC tail 的新词;通过缩短测试期间的周期性刷新间隔并等待缓存逐 CN 清除,确认陈旧缓存不会使 100/101 在收敛后持续缺失。用例末尾还检查手动清理缓存后的状态。

    白盒验证

    本次未重新执行 Go UT;合入的 #29024 已包含周期性缓存刷新相关 UT。本次关闭依据是上述三次实际执行的多 CN BVT 日志,不把 UT 代替端到端结果。

    回归测试

    原 BVT 的 @skip:issue#28985 已由 #29024 移除,现有用例覆盖此问题;本次无需再加重复的 MOTR。该用例验证的是缓存刷新后的最终收敛,不承诺默认配置下跨 CN 写入后立即可见。若以后要求立即可见,需要单独定义新契约和测试。

    测试证据

    见上表三个 Actions job 的逐文件日志,均明确记录 fulltext2_copy_alter.sql 的 TOTAL:50, SUCCESS:50, FAILED:0, IGNORED:0;当前 BVT 文件 保留了 id 100/101 的结果断言。

    测试结论

    测试通过。

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