forked from kakao/varlog
-
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.
feat(storagenode): change the synchronization method to accept only t…
…he last commit context This patch changes the synchronization process to accept only the last commit context applied by kakao#162. The synchronization copies log entries and the latest commit context from the source replica to the destination replica. The destination's reportCommitBase should be valid, and its log entries should be the same as the source's. SyncInit can now delete log entries that the source replica had already removed. It deletes all log entries simultaneously to avoid a hole in the middle of log entries. It also makes the replica's reportCommitBase invalid because commit context and log entry are inconsistent during the synchronization. SyncReplicate no longer uses the SyncReplicateBuffer since there is no reason to store a commit context and corresponding log entries in the buffer and write them into a disk at once. It now saves log entries or the commit context every time. We can optimize the SyncReplicate to transfer a batch of log entries, which we can discuss later. Updates kakao#125
- Loading branch information
Showing
8 changed files
with
1,357 additions
and
660 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
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.