You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Former candidates can vote twice in one term in CCF Raft. This is not a safe violation as it cannot lead to two leaders in a term but it is something we might want to address at some point (or we will need to update the spec accordingly)
Steps:
Node A becomes a candidate in some term, say 3
However, another node (node B) is elected leader of term 3
Node B sends an AE message to node A in term 3. Node A will step down to a follower in term 3
Former candidates can vote twice in one term in CCF Raft. This is not a safe violation as it cannot lead to two leaders in a term but it is something we might want to address at some point (or we will need to update the spec accordingly)
Steps:
In the process of stepping down,
raft.h
callsbecome_aware_of_new_term
and thevoted_for
field is reset, allowing the node to vote again.https://github.com/microsoft/CCF/blob/61d6c1824f80d4714d9006b5292f2cff57473d5a/src/consensus/aft/raft.h#L1017-L1012
This report is just based of code inspection, it would be useful to generate a trace of this in practice
The text was updated successfully, but these errors were encountered: