forked from cockroachdb/cockroach
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
storage: release preemptive snapshot after remote apply
Previously we were releasing the snapshot (i.e. calling `Replica.CloseOutSnap()`) when the ChangeReplicas operation completed. Now we release the snapshot as soon as the remote node has applied it. This is important to allow other ranges to make progress which might be required for the current ChangeReplicas operation to complete. Fixes cockroachdb#10483 Fixes cockroachdb#10306 See cockroachdb#10409
- Loading branch information
1 parent
09c0f88
commit efa4624
Showing
2 changed files
with
78 additions
and
42 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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