forked from microsoft/garnet
-
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.
Support for Diskless Replication (microsoft#997)
* expose diskless replication parameters * refactor/cleanup legacy ReplicaSyncSession * add interface to support diskless replication session and aof tasks * core diskless replication implementation * expose diskless replication API * adding test for diskless replication * update gcs extension to clearly mark logging progress * fix gcs dispose on diskless attach, call dispose of replicationSyncManager, add more logging * complete first diskless replication test * fix iterator check for null when empty store * fix iterator for object store cluster sync * add simple diskless sync test * cleanup code * replica fall behind test * wip * register cts at wait for sync completion * add db version alignment test * avoid using close lock for leader based syncing * truncate AOF after streaming checkpoint is taken * add tests for failover with diskless replication * fix formatting and conversion to IPEndpoint * fix RepCommandsTests * dispose aofSyncTask if failed to add to AofSyncTaskStore * overload dispose ReplicaSyncSession * explicitly dispose gcs used for full sync at replicaSyncSession sync * dispose gcs once on return * code cleanup * update tests to provide more context logging * add more comprehensive logging of syncMetadata * add timeout for streaming checkpoint * add clusterTimeout for diskless repl tests * some more logging * cleanup and refactor code * truncate AOF only when main-memory-replication is switched on * adding logging for cancellation when streaming * split checkpoint commit marker to allow for disk checkpoints * update sync metadata log message * add progress based timeout implementation * deprecate main-memory-replication
- Loading branch information
Showing
44 changed files
with
2,697 additions
and
282 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
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
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.