Skip to content

[Bug]: 4.2 changed-table discovery discards checkpoint data read errors #32867

Closed

Description

@LeftHandCold

Is there an existing issue for the same bug?

  • I have checked the existing issues.

Branch Name

4.2-dev. This is a release-branch backport gap; the equivalent error propagation is already present on main.

Commit ID

7400cae

Other Environment Information

Isolated Linux validation with Go 1.26.4, matching native build artifacts, and real checkpoint writer/reader objects. The file service injects a deterministic error when reading a selected checkpoint data object. No production incident or end-to-end synchronization speedup is claimed.

Actual Behavior

When the selected checkpoint has no table-ID index, getChangedListFromCheckpoints reads checkpoint data through CKPReader.ForEachRow. The 4.2-dev caller discards its returned error. HandleGetChangedTableList can consequently return success with an empty or incomplete changed-table list after a real object read fails.

Source:

readers[i].ForEachRow(

A caller cannot safely interpret that successful negative result as proof that a table has not changed.

Expected Behavior

Propagate a checkpoint data-read error to the changed-table-list caller before publishing table/account/database IDs. Preserve the existing successful path and catalog lookup behavior.

Steps to Reproduce

The regression in #32866 writes two real incremental checkpoint fixtures without a table-ID index and executes the complete handler:

  1. No read fault: a complete list is returned.
  2. Fail the first checkpoint data-object read: the original handler incorrectly returns nil error.
  3. Read a table ID from the first checkpoint, then fail the second data-object read: the original handler again incorrectly returns nil error.

With identical test source, both error subcases fail on the above base and pass after the narrow error-propagation backport. The successful control passes on both versions. The helper assertion also proves that the later-error case accumulated a partial table ID before failing.

Additional information

Main already propagates this error, introduced as part of d0e7f9a (#29685). That larger change also addresses the distinct v12 conversion problem in #29263; this issue only tracks the 4.2 changed-table discovery consumer gap and does not claim to backport the entire conversion fix.

Draft fix: #32866. Local validation: three regression subcases, owning rpc package (35 top-level PASS, two existing SKIP), focused race, gofmt, go vet and changed-package lint pass. Public ChangedTableList SQL/API design and MOI collector changes are separate work.

Activity

  1. added a commit that references this issue on Nov 17, 2026
    1f9b52e
  2. XuPeng-SH commented on Nov 17, 2026

    @XuPeng-SH
    Contributor

    QA 交接(4.2-dev,不代表验收通过)

    #32866 已于 2026-11-17 16:14:38 UTC 合入 4.2-dev,merge SHA 1f9b52e6f74497149488a9eae8366c6d8b3e7c73,PR head 89958c95eaa0ae48b2146050bf67ee582bfd5995。本项为该发布分支的 checkpoint fallback 读错误传播缺口;main 已有等价错误传播,但此前不能据此视作 4.2 已修复。现交 @Ariznawlll 验证,保持 open。

    已读 issue 全文(当前 0 评论)、PR 全部讨论及审查,未见适用于合入修复的已验证反例或未完成必要开发 follow-up。本次巡检未本地运行测试:

    • 作者用真实 checkpoint writer/reader fixtures 及确定性文件读故障覆盖成功、首次读失败、已积累部分 ID 后再读失败;相同测试旧基线的两个错误分支失败、修复后通过。
    • 审查针对上述 head 独立运行 owning RPC package normal/race,各 35 PASS、2 个既有 SKIP;三种回归场景及 90 次 focused race 通过,旧基线成功对照通过、两个错误对照按预期失败。既有跳过为 TestHandle_MVCCVisibility 和 Test_gcArg。
    • merge queue 报告 CI Required 成功;不据此宣称真实同步链路验收完成。

    QA 请确认读错误在发布 table/account/database IDs 之前返回,不能把空/部分列表当成功;同时验证无故障完整列表和既有 catalog lookup 行为。证据来自真实 checkpoint fixture,不含端到端同步工作负载。公共 ChangedTableList SQL/API、MOI collector、端到端同步加速及 #29263 的完整 v12 转换修复均不在该窄修复范围,不作一并完成声明。

  3. Ariznawlll commented on Nov 18, 2026

    @Ariznawlll
    Collaborator

    QA 回归交付完成,按本 issue 的原始验收范围关闭。

    验收范围(以 issue 正文为准):4.2 changed-table discovery 不得丢弃 checkpoint 数据读错误,读失败需经 handler 传播。

    交付内容

    验证证据

    • 测试源:matrixone 4.2-dev @ 72c43e9305d8355c940075e414f30eaf2e4112a6
    • motr --branch 4.2-dev --parallel 1 --repeat 2:record 2/2 PASS,verify 2/2 PASS,fixture 输出与预期基线一致。

    范围外(不声称):e2e 同步链路、MOI 采集覆盖——这两项不在本 issue 验收范围内。

  4. Ariznawlll commented on Nov 18, 2026

    @Ariznawlll
    Collaborator

    按原始验收范围(#359 PR + record/verify 2/2 PASS)关闭;e2e 同步与 MOI 采集如后续出现问题请开新 issue。

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