-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(storagenode): change SyncInit to handle trimmed source replica
This patch changes the behavior of SyncInit to handle empty source replicas. Previously SyncInit thought that an empty source could not exist. Changes are the followings: - Destination replica, SyncInit RPC server replies gRPC AlreadyExists error if it already has enough log entries and a commit context. - Destination replica trims its local log entries if the source replica already did and receives a commit context if necessary. Soon, we will change the behavior of Trim to be able to remove all log entries from a log stream replica. This PR prepares it. Updates #351
- Loading branch information
Showing
8 changed files
with
1,422 additions
and
574 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
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
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
Oops, something went wrong.