Repository navigation
fix(disttae): preserve optimistic RC write dependencies across snapshot advances - #32174
Conversation
🛑 Pull request from fork cannot be queuedDetailsThis pull request comes from a fork, and Mergify needs the author's permission to update its branch. |
🛑 Pull request from fork cannot be queuedDetailsThis pull request comes from a fork, and Mergify needs the author's permission to update its branch. |
1 similar comment
🛑 Pull request from fork cannot be queuedDetailsThis pull request comes from a fork, and Mergify needs the author's permission to update its branch. |
|
@Mergifyio refresh |
✅ Pull request refreshed |
|
@Mergifyio queue |
❌ Left the queue · checks failed2 h 10 min in the queue, with no time running CI. So far
The failure is in this pull request. It failed tested alone on top of Reason The merge conditions cannot be satisfied due to failing checks
To get back in the queue
Merge conditions not met when it left the queue
Tick the box to put this pull request back in the merge queue (same as
2 merge conditions met
Times in UTC · dashboard · how the merge queue works |
What type of PR is this?
Which issue(s) this PR fixes:
Related issue #29401 (closed as not planned for retired optimistic mode). This repairs the row-write conflict mechanism without restoring optimistic-mode product support or reopening the issue.
What this PR does / why we need it:
RC snapshot advancement can move TN's conflict fence past an earlier optimistic UPDATE. Preserve a separate CN write-validation watermark, validate existing writes before transfer/commit, and reject missing history conservatively. Transfer remains enabled; pessimistic/SI behavior and storage/wire formats are unchanged. R2/FOR UPDATE publication remains outside this PR.
The CI follow-up releases the idle canonical SQL fixture through its cleanup owner before starting each dedicated CAS cluster. The public RC regression now exercises shared cluster -> dedicated CAS cluster -> working shared cluster in one process. No test is skipped and the existing cluster admission guard remains intact.
Validation for
150373aa7501a206b744ea86d2ae9b27a07b39f7:test/distributed/cases/optimistic/rc_write_dependency.sql/.result; ordinary CI excludes the retired optimistic directory.c7393620failed normal UT and coverage UT because ten CAS roots could not acquire cluster ownership while the shared fixture remained active. Aggregate coverage was blocked by its prerequisite result; this was not a measured coverage-percentage failure.QA required: yes — transaction isolation, duplicate-key integrity, transfer and restart. Deployed multi-CN, crash-recovery, upgrade and performance qualification remain outstanding. PR review approval is still required.