Repository navigation
fix: bound memory during parallel vector load - #26252
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? |
|
Fix for #26272 has been pushed in |
XuPeng-SH
left a comment
There was a problem hiding this comment.
Reviewed exact head 70f9e1d against 4.2-dev@46dfc97cf284c51ce12095aa75618b1ef0410453. No blocking findings.
I traced the full memory-bound closure: parallel vector CSV decoding now avoids the varchar-plus-binary overlap; LOAD write parallelism and merge receiver buffering are capped; connector backpressure occurs before upstream batch production and terminates on context/edge completion; hashbuild transfers retained batches into spill ownership one at a time, cleans the current/remaining batches on error, and bounds per-bucket rows by observed row width. Reset and deferred cleanup close the reuse/error paths.
The compile delta is intentionally adapted to the older 4.2 join architecture rather than being patch-identical to main. SINK_SCAN-dependent shuffle receivers stay coordinator-local, while remote dispatch sources are attached to an executable scope tree; ordinary joins retain the existing 4.2 path. Late irregular-index steps rerun shuffle/runtime-filter planning after remap, with the existing RuntimeFilterBuildList guard preventing duplicate filters. The final unused-helper removal is consistent with that adaptation.
I also reviewed the added #26272 fix. With an empty LocalFS root, Write/NewWriter now create temp files beside the absolute destination, preserving same-filesystem atomic rename; non-empty-root semantics are unchanged. Creation, error cleanup, close/rename ownership, directory sync, and fd-cache boundedness were checked. I applied the exact 8f585a4 patch in an isolated worktree: the cross-filesystem regression passed under -race x10; full pkg/fileservice -race, vet, and build passed. GitHub CI is green on this head.
What type of PR is this?
Which issue(s) this PR fixes:
issue #25114 #26272
What this PR does / why we need it:
fix: bound memory during parallel vector load