adapter: make WAIT FOR roll back on timeout - #38621
Merged
Merged
Conversation
WAIT FOR currently forces a cut-over when the controller handles an expired deadline while the target remains unhydrated. Use the safer ROLLBACK action instead while preserving cut-over when the target hydrates. Users can still request a forced cut-over explicitly with ON TIMEOUT COMMIT.
aljoscha
force-pushed
the
aj/docs-wait-for-semantics
branch
from
September 2, 2026 10:05
6374186 to
1605348
Compare
aljoscha
force-pushed
the
aj/docs-wait-for-semantics
branch
from
September 2, 2026 10:07
1605348 to
c634bec
Compare
aljoscha
marked this pull request as ready for review
September 2, 2026 11:38
sjwiesman
approved these changes
Sep 2, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Motivation
ALTER CLUSTER ... WITH (WAIT FOR ...)currently forces a cut-over when itstimeout is processed while the target replicas remain unhydrated. This differs
from the safer
ROLLBACKdefault used byWAIT UNTIL READYand can introduceunexpected downtime.
Description
Make
WAIT FORuseROLLBACKwhen its deadline is processed while the targetremains unhydrated. A hydrated target still cuts over. Users who need a forced
cut-over can request it explicitly with
WAIT UNTIL READY (..., ON TIMEOUT = 'COMMIT').Update the user and design documentation to describe the safe timeout behavior.
Tests that intentionally require a forced cut-over now spell out
ON TIMEOUT COMMIT. The cluster-controller testdrive coverage verifies that anunhydrated
WAIT FORtarget times out and leaves the realized cluster shapeunchanged.
This changes a private-preview SQL option.
Verification
The existing cluster reconfiguration tests were updated to cover the new timeout
action and preserve explicit forced cut-over scenarios. Documentation build and
link validation covers the updated user pages.