Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Fix case where master node may crash after 2 consecutive elections #1510
Sample case (data has been anonymized):
It looks like the following sequence of events is occuring:
Getting a second ElectionMessage.ElectionsDone message before SystemMessage.BecomeMaster is published doesn't give the chance to the StorageWriterService to become Master and it's still in the PreMaster state when the WriteEpoch message is received.