Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
checker: fix remove pending peer by replacing peer #1607
What problem does this PR solve?
Currently, once we remove a pending peer when a store is offline or down, there might be a gap before making a replica, which may be very dangerous.
What is changed and how it works?
This PR fixes this problem by replacing the pending peer instead of removing the peer directly.
@@ Coverage Diff @@ ## master #1607 +/- ## ========================================== + Coverage 77.44% 77.45% +<.01% ========================================== Files 163 163 Lines 16430 16422 -8 ========================================== - Hits 12725 12720 -5 + Misses 2658 2656 -2 + Partials 1047 1046 -1