Todd Lipcon has posted comments on this change.

Change subject: KUDU-1365. Add leader pre-elections
......................................................................


Patch Set 4:

Seeing one issue here.. with a 3-node config and one down, we can get stuck in 
this state:

peer A: current term 1, has ops through 1.41
peer B: current term 2, has ops through 1.25, voted for peer C in term 2

When peer A calls a pre-election for term 3, B rejects it because it already 
voted. When peer B calls a pre-election for term 3, peer A rejects it because 
it has a higher opid. So, they get "stuck".

This doesn't happen without pre-election because the voting process would 
ensure that peer A eventually ends up with a higher term than peer B.

I guess we need to do something such that a peer with an old term bumps its 
term up to at least the term of the voters that respond. Any thoughts?

-- 
To view, visit http://gerrit.cloudera.org:8080/4694
To unsubscribe, visit http://gerrit.cloudera.org:8080/settings

Gerrit-MessageType: comment
Gerrit-Change-Id: Ifcfabd8c9ffe31f17ab768542a046426f656db43
Gerrit-PatchSet: 4
Gerrit-Project: kudu
Gerrit-Branch: master
Gerrit-Owner: Todd Lipcon <t...@apache.org>
Gerrit-Reviewer: David Ribeiro Alves <dral...@apache.org>
Gerrit-Reviewer: Kudu Jenkins
Gerrit-Reviewer: Mike Percy <mpe...@apache.org>
Gerrit-Reviewer: Tidy Bot
Gerrit-Reviewer: Todd Lipcon <t...@apache.org>
Gerrit-HasComments: No

Reply via email to