fix: don't update current_master_name until it synchronizes
This patch changes when we update current_master_name during consistent master switchover. Now it is updated as soon as we determine that the new master has synchronized it's vclock with the old master. As a result we can now block expel of a non-last replica in cases where other replicas are offline, which is crucial because instances can easily become offline due to temporary network issues.
parent
41ca8ad4
No related branches found
No related tags found
Showing
- CHANGELOG.md 3 additions, 0 deletionsCHANGELOG.md
- src/governor/mod.rs 119 additions, 57 deletionssrc/governor/mod.rs
- src/governor/plan.rs 114 additions, 55 deletionssrc/governor/plan.rs
- src/info.rs 1 addition, 1 deletionsrc/info.rs
- src/rpc/replication.rs 53 additions, 23 deletionssrc/rpc/replication.rs
- test/int/test_joining.py 0 additions, 1 deletiontest/int/test_joining.py
- test/int/test_plugin.py 1 addition, 0 deletionstest/int/test_plugin.py
- test/int/test_replication.py 3 additions, 3 deletionstest/int/test_replication.py
Loading
Please register or sign in to comment