Repository navigation
fix(disttae): budget transaction workspace batch copies - #32458
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? |
|
@XuPeng-SH Addressed the P2 from your review in b738167. Clean-object republications in Local validation: full disttae package, focused regression/race, vet and incremental lint passed. The extended No inline threads exist to resolve. Please re-review the updated head; a re-review request is being sent separately. |
|
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: b738167f4b3146dce5fe3fe7c10600ca22ab139d
Assessment: approve
The prior clean-object admission finding is resolved. The change coherently reuses CN accounting with independent workspace lifetimes and failure-atomic staging. No actionable findings remain.
Model: gpt-6.1-sol / max
Session: 01a1a004-90c3-73b1-acc9-3d4636452003 · slot 0 · generation 0
Validation:
-
Reviewed the complete 22-file delta, all eight discussion entries and linked issue #32008.
-
Static audit passed: formatting, diff checks, both SQL/result pairs and independent result arithmetic. Receipt: checks/1794336990215575331-3.json; log: review-audit.log.
-
Isolation preflight passed; receipt: checks/1794336700215987307-3.json.
-
Frozen-head CI reports 13 successful checks, including build, UT, static analysis and proxy/pessimistic BVT. Skipped and neutral checks were excluded.
-
Discussion assessment and receipt reconciliation saved; source remains unchanged.
Limitations:
-
No local Go or SQL tests executed; raw author runtime logs and individual CI test logs were not supplied.
-
Full-PR throughput and 16 GiB cgroup pressure/soak remain unvalidated. This approval does not establish historical OOM closure or 4.2 backport readiness.
✅ Merged into
|
What type of PR is this?
Which issue(s) this PR fixes:
issue #32008 (partial workspace-admission hardening, not closure of the historical OOM investigation)
What this PR does / why we need it:
Transaction INSERT/DELETE copies could allocate outside execution-memory admission while staying live alongside accounted operators. Give workspace copies independent lifetime accounts on the existing CN budget, including physical-headroom checks and physical-Free refund ownership. Snapshot workspaces sharing a Process do not close each other's generations. Generic CopyBatch remains unchanged; raw WriteBatch destinations retain their own provenance.
Integrate ownership across INSERT and commit-time merge, rather than charging obsolete copies:
Existing spill decisions, approximate workspace counters and unpublished-object ownership remain authoritative. No new controller, budget exception, background task, configuration, protocol or storage format.
Design: workspace ownership, reviewed design-first revision 7ebc034. Base: 745d253.
Correctness validation
Real-controller measurements and remaining acceptance
The copy benchmark now includes workspace_cn using GetExecutionResourceBudget, the real CN registry and OpenWithController (not a standalone account). One local 50,000-iteration diagnostic measured generic 967, standalone workspace account 1284, and CN-controller workspace 1850 ns/op. It is a different protocol from the earlier 1,000-iteration 1163/3725 sample, so this is not a before/after performance-improvement claim.
A bounded local real SQL/controller A/B/A compared the reviewed be4c16e production path with the merge fix. Each fresh service ran 32 transactions per stage, 30 batches x 64 unique rows per transaction. Client latency includes result validation. The mixed stage used four DML clients plus a concurrent join whose physical plan contains HashBuild; every join result was checked (257/267/283 queries). No budget test injection was used.
Small samples and baseline drift prevent a statistical improvement or business-throughput acceptance claim. This comparison isolates the merge fix within the already-accounted PR, not the full PR versus pre-admission main. Allocation-count reductions do not substitute for throughput evidence.
QA required: yes. Full-PR transaction performance and fresh-capacity 16 GiB Linux/cgroup mixed DML/HashBuild pressure/soak remain NOT_RUN. Local Darwin mixed correctness/measurements do not establish hard-limit capacity safety. A new controlled Linux environment still needs admission; the original run/namespace/PVCs/receiver were not operated on. The original formal experiment remains NOT_RUN and #32008 is not declared systematically resolved.
The PR was externally marked Ready; this update preserves that state without claiming the outstanding acceptance gates passed. No release branch is changed; 4.2 needs a separate minimal-complete adaptation/dependency review rather than a mechanical cherry-pick.
CR follow-up: clean-object republication admission
Addressed XuPeng-SH's P2 in
b738167f4b31: compactDeletionOnObjsLocked now stages retained clean-object metadata through copyWorkspaceBatch instead of an unaccounted Dup. Publication still occurs only after all fallible staging succeeds.The existing mixed clean/dirty-object compaction fixture now saturates the CN controller before republication, checks a capacity error before any new object persists, and preserves the original batch, deletion marks, entries and charge. It also checks that a later dirty-rewrite refusal refunds all staged clean copies, then restores capacity, retries, verifies every replacement/republication account and terminal zero balances. The prior production overlay fails the new refusal oracle by persisting an extra replacement first.
PASS: final focused regression/race (3.836 s, test debug symbols stripped with native link flags retained), full disttae package (58.604 s), vet, incremental lint, formatting/diff checks. The expanded cn_spill_byte_bound SQL passed twice on a newly built non-SIMD, stripped local diagnostic service, including a same-transaction mixed-object insert/delete/commit and exact 63-row, unique-ID, sum and payload checks. Earlier runs against the old executable are excluded. Canonical SIMD local service builds stopped at disk-exhaustion compilation; they are not reported as passes. New-head canonical CI/BVT is pending.
All original throughput/16 GiB acceptance limitations remain. There are no inline review threads to resolve; the blocking formal review still requires the reviewer's new assessment. Ready state is preserved.