Repository navigation
fix(external): isolate parallel worker runtime parameters - #31496
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? |
…a98c625f0d014d6a44ee1b1008140c2b67bfe1c
|
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: ea97e79be6007eb51d29716b806d5821d21de717
Assessment: approve
Reviewed the complete delta, linked issue, discussion and affected lifecycle. The copy correctly isolates worker context/service writes while preserving configuration, cleanup and rollout behavior. No actionable findings remain; the discussion contains no substantive disputes.
Model: gpt-6-astra / xhigh
Session: 01a13dcf-1517-7f90-b3f9-c5f9f9e7031b · slot 0 · generation 1
Validation:
-
Baseline production overlay reproduced FileService/Ctx races and shared-template mutation.
-
Candidate external-package tests passed in normal and race modes; the focused concurrency test passed 100 repetitions.
-
go vet for external and the compiler-package build passed.
-
Native provenance, source fingerprints, command/exit receipts and retained logs independently reconciled in /home/xupeng/.local/state/mo-bot/jobs/ca0e9593a12fec415f1c8d45/attempt-2/validation-audit.json. Source remains unchanged.
-
Complete discussion ledger saved as attempt-2/discussion-assessment.json.
Limitations:
-
One existing MinIO integration test skipped because its binary is unavailable; the changed disk-backed S3 alias test passed.
-
Validation exercised production operators directly, without a full SQL cluster run or performance benchmark. Frozen CI did not establish core-test coverage.
🚫 Left the queue40 min in the queue, with no time running CI. So far
Reason Pull request #31496 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.
Hint You 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. Merge conditions: 2 of 3 metThis pull request
The batch, tested in place
Tick the box to put this pull request back in the merge queue (same as
Times in UTC · dashboard · how the merge queue works |
…a98c625f0d014d6a44ee1b1008140c2b67bfe1c
What type of PR is this?
Which issue(s) this PR fixes:
What this PR does / why we need it:
Parallel LOAD workers share a statement's
tree.ExternParam. Preparing workers and opening their readers write its context and FileService, causing data races and overwriting another worker's parser context.Copy the top-level parameter on every Prepare before runtime writes. Each worker keeps its own context and service binding while nested configuration remains shared and read-only. Preserve explicit services, the executing worker's nil-service fallback, remote decoding and Arrow rollout checks. The copy adds one fixed-size allocation per Prepare and no per-row work or synchronization.
Regression coverage includes concurrent preparation, distinct file services and real JSONLINE reads, independent parser cancellation, reset/reprepare, rejected input, decoded parameters and the Arrow S3-alias gate.
Validation on macOS arm64 / Go 1.27.1:
CI is pending. No public SQL or wire format changes; no new BVT was needed for this internal ownership fix. Leave the issue open for reporter verification after merge.