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
There is a possibility whereby a multi-master scenario will arise due to nodes using out of date information (from gossip) during elections to propose or accept a node as a master candidate.
The gossip carries with it the Epoch Number which is used to determine whether a master candidate is a legitimate master candidate. In the following example, a master proposal with a higher epoch number could result in a node accepting a new master candidate even if its current master is still alive.
The above means that if a node gets a master proposal before it received a gossip from it's master after an election, the master proposal is accepted.
Example:
5 node cluster (Node 1 through to Node 5)
Node 1 is elected master
An election is started because Node 2 is restarted
Node 2 is the leader of the elections
Node 2 proposes Node 3 as the master as according to it, it's the best master candidate (it might have not received a gossip from the current master node)
Node 2accepts it's proposal
Node 1rejects the proposal as it's the master and it has the most up to date information about itself (Epoch Number included) and it's still alive
Node 3accepts the proposal because even though it has a previously elected master, it hasn't received a gossip from the master (Node1) with the updated Epoch Number whereas the proposal has a higher Epoch Number than the current master (Node1) at this point
Node 4rejects the proposal as it received a gossip from the current master (Node1)
Node 5accepts the proposal because it also hasn't received a gossip from the current master (Node1)
The above results in multiple masters existing in the same cluster without a network partition having occurred.
Once this happens, a series of elections will take place.
The text was updated successfully, but these errors were encountered:
There is a possibility whereby a multi-master scenario will arise due to nodes using out of date information (from gossip) during elections to propose or accept a node as a master candidate.
The gossip carries with it the Epoch Number which is used to determine whether a master candidate is a legitimate master candidate. In the following example, a master proposal with a higher epoch number could result in a node accepting a new master candidate even if its current master is still alive.
The above means that if a node gets a master proposal before it received a gossip from it's master after an election, the master proposal is accepted.
Example:
The above results in multiple masters existing in the same cluster without a network partition having occurred.
Once this happens, a series of elections will take place.
The text was updated successfully, but these errors were encountered: