Bug-2277 : Isolated Leader Implementation 99/12799/10
authorKamal Rameshan <kramesha@cisco.com>
Thu, 13 Nov 2014 00:00:34 +0000 (16:00 -0800)
committerKamal Rameshan <kramesha@cisco.com>
Wed, 19 Nov 2014 06:44:42 +0000 (22:44 -0800)
A new RaftState has been added and on a scheduler, we check if the leader is isolated, looking at the majority peer statuses.
If Yes, then it switches the behavior to IsolatedLeader.

On the receipt of each AppendEntriesReply, the IsolatedLeader checks for isolation.
And if no, then switches back to either Leader or Follower.

These changes have been tested with TestDriver  and 3 node cluster and the switching of Leader to IsolatedLeader and back,
on the stopping and reinstating of followers, was successful.

The Isolated Leader check interval can be configured via the config subsystem

Change-Id: I42b9165cc477d812c7e0e02339537c0f1fe74934
Signed-off-by: Kamal Rameshan <kramesha@cisco.com>

No differences found