Conversation
PR Summary by QodoWait for all fencing responses before leader appointment
AI Description
Diagram
High-Level Assessment
Files changed (1)
|
Code Review by Qodo🐞 Bugs (0) 📘 Rule violations (0) 📎 Requirement gaps (0)
Great, no issues found!Qodo reviewed your code and found no material issues that require reviewTip of the day💡 Did you know, you can group findings by type and pick your Finding display, from Minimal to Full |
There was a problem hiding this comment.
We thought it'd be neat to proceed with the appointment as soon as quorum nodes have responded.
This reverts that optimisation and so we wait for any nodes that respond within the timeout.
It matters because followers ack before flush, so it is possible (though unlikely) for a write to be present on the leader (on disk) and one follower (in memory), then for that follower to be restarted (losing the write) and back in time to participate in an appointment before the leader was able to replicate that write to the other follower, then for the two followers to be the ones who respond to the appointment fence first.
Changed: Removed quorum-based fencing