-
Notifications
You must be signed in to change notification settings - Fork 312
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(duplication): failed to start duplication after source replica se…
…rvers exit due to missing duplicating status in .app-info (#1608) #1595 Currently, after a duplication was added, `duplicating` status would be only updated for in-memory state. However, once some replica servers exited and were started again, `duplicating` status would be lost since it had not been persisted into `.app-info` before. Consequently, plog files would be removed by GC, which lead to failed assertion for decree in `replica_duplicator::verify_start_decree()`. To resolve this problem, `duplicating` should be updated for both in-memory and on-disk states. Then, `duplicating` status would be loaded correctly from `.app-info` file at the loading stage of replicas.
- Loading branch information
1 parent
937e337
commit f5e1b81
Showing
4 changed files
with
45 additions
and
7 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