Repository navigation
fix(window): normalize spill admission errors - #30397
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? |
|
Reviewed latest head No blocking findings in this change. Applying normalization at the public Validation performed in an isolated worktree:
Validation limitation: the unmodified full window suite was not green on this machine. Successful-spill cases hit Non-blocking suggestion: retain a protocol-level regression like the above in the repository, so the external 3015/HY000 contract and same-connection recovery remain covered beyond the operator-level assertions. Code-review recommendation: approve, subject to required CI passing. CI was still pending/running at review time; this is an ordinary review comment, not a formal approval. |
|
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: e1f547f907c74f5f7e95ab068c6c65addfbc736b
Assessment: approve
Reviewed the complete three-file delta, callers, cleanup paths, tests and supplied comments. Window.Call appropriately reuses the established terminal-error mapper, restoring the resource-exhaustion SQL contract without duplicating normalization inside spill machinery. Cancellation, lifecycle errors and resource ownership remain intact. Success-path overhead is one deferred mapping check per Call; no new per-row allocation or I/O was identified. No actionable findings remain.
Model: gpt-6-astra / xhigh
Session: 01a13dcf-1517-7f90-b3f9-c5f9f9e7031b · slot 0 · generation 1
Validation:
-
Eight targeted tests passed across window, hashbuild and moerr, covering disk/FD admission, constant-key spill, cancellation, reset/reuse, error mapping and serialization. Receipt: checks/1792158154411599802-3.json; log: focused-recovered.log.
-
Isolation preflight passed. Missing native prerequisites initially prevented testing; an exact-head diagnostic checkout was built through the repository owner, provenance verified, and testing then completed successfully.
-
Source fingerprints, clean checkout state, patch scope, formatting, commands, exit receipts and logs were reconciled. Evidence audit receipt: checks/1792158255092907474-4.json. Retained manifest: /home/xupeng/.local/state/mo-bot/jobs/9c23c5cab7b2c194c590263d/attempt-1/validation-manifest.json.
-
Frozen exact-head evidence reports successful Ubuntu unit tests, static analysis, coverage and proxy/pessimistic multi-CN BVT.
Limitations:
-
Raw CI logs were not supplied. The exact-head TCP SQL reproduction in comment 6213132613 was reviewed as reported evidence, not independently replayed.
-
Linked issue #30391's body was unavailable; its error-code contract was assessed from the supplied PR and comments.
-
No local full-suite, race, BVT or performance benchmark rerun was performed.
Merge Queue Status
This pull request spent 19 minutes 37 seconds in the queue, with no time running CI. ReasonPull request #30397 has been dequeued Pull request from fork cannot be queued. This pull request comes from a fork, and Mergify needs the author's permission to update its branch.
HintYou should look at the reason for the failure and decide if the pull request needs to be fixed or if you want to requeue it. Waiting for any of
All conditions
Tick the box to put this pull request back in the merge queue (same as
|
|
最近 24 小时合并项复核(main 在约 8.8 GiB 空闲空间的文件系统上,自动 spill 预算按既有 16 GiB emergency headroom 策略得到 cap=1;Group 的四个根测试隔离重复 3 次均失败(12/12),Window 的多个正常 spill 场景也在同样 cap=1 下失败。仅在 Group 测试夹具中显式设置 bounded spill 预算的临时 overlay,使相同 12 次执行全部通过,原结果和清理断言保持。 这是已复现的测试夹具宿主容量依赖;没有把它归因于本 PR 新引入,也没有认定生产磁盘保护策略错误。本 PR 的 Window 3015 错误映射/资源拒绝清理回归本轮通过;正常 spill 夹具问题仍需另外处理。详见 #30450 的命令、失败与对照数据。 |
What type of PR is this?
Which issue(s) this PR fixes:
Fixes #30391
What this PR does / why we need it:
Window ordered spill admission failures were returned directly as the internal execution-resource admission error, which exposed SQL error 20101 instead of the client-facing resource-exhausted error (3015).
This change applies the existing terminal budget-error mapping at the public
Window.Callboundary and keeps lifecycle, cancellation, and non-admission errors unchanged. The forced spill tests now verify the 3015 mapping, the internal sentinel is not exposed, input rows remain intact, and spill reservations are released.Validation: