Repository navigation
fix(pSpool): reserve cached backing across batch columns on 4.2-dev - #32753
Conversation
Qodo reviews are paused for this user.Troubleshooting steps vary by plan Learn more → On a Teams plan? Using GitHub Enterprise Server, GitLab Self-Managed, or Bitbucket Data Center? |
|
Queue requested — the merge queue status continues in this comment ↓. |
|
mo-bot review · Commit: Review completed. Read the assessment. |
XuPeng-SH
left a comment
There was a problem hiding this comment.
mo-bot review · mo-bot-local · review
Commit: 81e66c3b2999f817f6882a10ce74736463f47d90
Assessment: approve
The common matcher reserves backing across columns while preserving provenance and cleanup owners. Its per-call planning and pending sort replace duplicated selection logic and are justified by the scoped allocation saving. No actionable finding remains.
Model: gpt-6.1-sol / max
Session: 01a1a004-90c3-73b1-acc9-3d4636452003 · slot 0 · generation 0
Validation:
-
Reviewed the complete four-file delta, all three discussion entries and tracker #32751; closed logical sizing, aliases, compatibility, partial failure, slot reuse and connector/dispatch terminal ownership.
-
Local isolation preflight, frozen source/patch identity, gofmt, diff checks, unchanged owner fingerprints, preservation of existing assertions and receipt/log reconciliation passed.
-
Reused attributed author reports for baseline-failing real-Vector regressions, full pSpool/connector/dispatch normal/race/build/static checks, large-backing probes with zero balances and alternating microbenchmarks.
Limitations:
-
The local focused test stopped before compilation because cgo/libmo.so is missing; no native test binary ran. Raw author execution logs were unavailable.
-
Shared build, UT, SCA, coverage and Go analysis remain pending in the frozen CI snapshot, not passes.
-
Accepted costs include transient O(columns) scratch and reported 26–38 ns increases on narrow shapes. Component backing/resident-page savings do not establish whole-CN RSS or universal SQL improvement.
iamlinjunhong
left a comment
There was a problem hiding this comment.
审查结论:APPROVE。已审查当前精确 head 81e66c3b2999f817f6882a10ce74736463f47d90 相对 4.2-dev 基准 405195b4a8529a6f032ea74ab71037509050d20d 的全部四文件变更,未发现可证实的范围内问题。
范围依据为 #32751 中的整批缓存匹配子项。核对了精确匹配预留、剩余需求降序分配、逻辑 descriptor/fixed 大小、别名和 nil/NULL/常量处理、allocation-account/data-area 兼容性,以及复制失败、slot 返回、重试和 connector/dispatch 消费者清理链路。新增小规模回归保留了既有选择和所有权断言。本轮是首次 review,无待逐项复核的上轮意见;现有机器人 review 未提出问题。缓存保留策略及整个 CN 的 RSS/工作集优化属于 tracker 的后续子项,不作为本 PR 验收条件。
验证:本轮完成源码及测试审查,git diff --check 和 Loom check-pr-artifacts 均通过,源码工作区保持干净。未运行本地定向测试:提供的精确 head CI 已有 UT、coverage、构建及 SCA 成功结果,当前代码核对未留下必须本地复现的不确定性;作者报告的 normal/race 与内存/性能测量未在本轮独立重跑,不将其表述为本轮实测。
CI 以本轮 review-context.json 为准:本次 Actions 等共 34 个 checks,19 success、13 skipped、2 neutral;并非全部 success,但无 failure 或 pending,CI Required 为 success。
✅ Merged into
|
What type of PR is this?
Which issue(s) this PR fixes:
Related to #32751 (P2; the tracker remains open).
What this PR does / why we need it:
Per-column cache selection can give a small TEXT column the only large cached payload block and force a later large column to allocate another block, even with exact-fit acceptance. With cached
[empty, 128 MiB]followed by[1 MiB, 128 MiB], the target can hold two 128 MiB areas instead of 1 MiB plus 128 MiB.Prepare unique destinations, reserve compatible exact matches across the batch, then match remaining requests largest-first before undersized fallback. Size descriptor/fixed backing from live rows instead of historical spare capacity. Payload and metadata copies retain source-column order. Remove duplicated searches and route the existing selection/provenance tests through the common matcher. All production changes stay in pSpool; existing ownership, allocation-account checks and terminal cleanup remain with their current owners.
Validation on Linux amd64, CPU-only, Go 1.26.4:
This proves the component reuse improvement, not a whole-CN RSS reduction, production OOM fix or universal SQL speedup. Mixed-history cache retention and full-query working-set budgets remain follow-up work.