Repository navigation
fix(sql): let ALTER COPY recover from concurrent writes - #33304
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: d242d89b23ef76ee2be6abd523f1ae1ddc70a4fe
Assessment: approve
The change reuses the existing publication locks and bounded replica rebuild to recover from data-only conflicts. The copy snapshot and lineage cutoff are validated separately, and the reviewed failure paths retain the existing transaction cleanup behavior. No actionable defects remain.
Model: gpt-6.1-terra / max
Session: 01a229e8-c998-7480-862c-3017417a9175 · slot 1 · generation 38
Validation:
-
Focused compiler tests and both new two-CN SQL regressions passed; focused-tests.log, receipt checks/1796013885242669014-3.json.
-
The existing rebuild and LOAD-wait matrix passed, including commit, rollback, mixed DML, indexes, lineage, cancellation, and injected failures; rebuild-matrix.log, receipt checks/1796014001803347116-3.json.
-
The changed compiler checks and both new cross-CN regressions passed under -race in separate runs; compiler-race.log and cross-cn-race.log, receipts checks/1796014634944962411-3.json and checks/1796014784294974264-3.json.
-
Isolation preflight passed, and reused native artifacts were verified against the frozen head’s inputs. Receipt and log details are retained in review-evidence-audit.json.
Limitations:
-
The initial combined race run timed out during compilation; the selected compiler and cross-CN checks subsequently passed in separate runs.
-
The author-reported sustained three-CN workload was not independently repeated. The late-branch regression uses a deterministic snapshot-advancement hook.
🚫 Left the queue · pull request branch update failed1 min in the queue, with no time running CI. So far
Reason The pull request can't be updated
To get back in the queue
Tick the box to put this pull request back in the merge queue (same as
Times in UTC · dashboard · how the merge queue works |
What type of PR is this?
Which issue(s) this PR fixes:
Fixes #32120
What this PR does / why we need it:
ALTER COPY can return 20601 after a concurrent write even when the rebuilt copy already contains the committed rows. A branch created during the copy also exposes a separate risk if the recorded lineage cutoff predates rows in the replacement.
Validation
make static-check-changed STATIC_CHECK_BASE=origin/main GOLANGCI_LINT_CONCURRENCY=6passed for 33 affected packages.