Repository navigation
Description
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
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:
- No read fault: a complete list is returned.
- Fail the first checkpoint data-object read: the original handler incorrectly returns nil error.
- 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
[4.2-dev] fix(tae): propagate checkpoint fallback read errors on 4.2 (#…
XuPeng-SH commentedon Nov 17, 2026
QA 交接(4.2-dev,不代表验收通过)
#32866 已于 2026-11-17 16:14:38 UTC 合入 4.2-dev,merge SHA
1f9b52e6f74497149488a9eae8366c6d8b3e7c73,PR head89958c95eaa0ae48b2146050bf67ee582bfd5995。本项为该发布分支的 checkpoint fallback 读错误传播缺口;main 已有等价错误传播,但此前不能据此视作 4.2 已修复。现交 @Ariznawlll 验证,保持 open。已读 issue 全文(当前 0 评论)、PR 全部讨论及审查,未见适用于合入修复的已验证反例或未完成必要开发 follow-up。本次巡检未本地运行测试:
QA 请确认读错误在发布 table/account/database IDs 之前返回,不能把空/部分列表当成功;同时验证无故障完整列表和既有 catalog lookup 行为。证据来自真实 checkpoint fixture,不含端到端同步工作负载。公共 ChangedTableList SQL/API、MOI collector、端到端同步加速及 #29263 的完整 v12 转换修复均不在该窄修复范围,不作一并完成声明。
Ariznawlll commentedon Nov 18, 2026
QA 回归交付完成,按本 issue 的原始验收范围关闭。
验收范围(以 issue 正文为准):4.2 changed-table discovery 不得丢弃 checkpoint 数据读错误,读失败需经 handler 传播。
交付内容
pkg/vm/engine/tae/rpc覆盖完整 list 成功、首次读失败、部分内部 list 后的后续读失败三类路径,确保数据读错误传播而非被吞。14_issue_regression.issue_32867_checkpoint_read_error_propagation(record 基线 + verify 双跑)。验证证据
72c43e9305d8355c940075e414f30eaf2e4112a6motr --branch 4.2-dev --parallel 1 --repeat 2:record 2/2 PASS,verify 2/2 PASS,fixture 输出与预期基线一致。范围外(不声称):e2e 同步链路、MOI 采集覆盖——这两项不在本 issue 验收范围内。
Ariznawlll commentedon Nov 18, 2026
按原始验收范围(#359 PR + record/verify 2/2 PASS)关闭;e2e 同步与 MOI 采集如后续出现问题请开新 issue。