Hello Kudu Jenkins, Andrew Wong, Adar Dembo, Volodymyr Verovkin,
I'd like you to reexamine a change. Please visit
http://gerrit.cloudera.org:8080/14260
to look at the new patch set (#2).
Change subject: [consensus] KUDU-2947 fix voting in case of slow WAL
......................................................................
[consensus] KUDU-2947 fix voting in case of slow WAL
Before this patch, a follower replica may grant 'yes' votes right after
processing recent Raft transactions even if currently established leader
is alive and well in cases when persisting a Raft transaction in WAL
takes longer than the leader election timeout.
In some cases that might lead to multiple successive election rounds
even if there were no actual reason to re-elect leader replicas.
While it's hard to create a test scenario with real tablet servers
to reproduce the preconditions which allow this bug to manifest itself,
it's easy to create one to verify the behavior of a follower replica
in such conditions. This patch adds such a scenario: it was failing
before the patch and now it's now passing with this patch.
Change-Id: I7c061b498e727a1a11e94e03c55530eeebfdf8dd
---
M src/kudu/consensus/raft_consensus.cc
M src/kudu/consensus/raft_consensus.h
M src/kudu/integration-tests/raft_consensus_election-itest.cc
3 files changed, 165 insertions(+), 3 deletions(-)
git pull ssh://gerrit.cloudera.org:29418/kudu refs/changes/60/14260/2
--
To view, visit http://gerrit.cloudera.org:8080/14260
To unsubscribe, visit http://gerrit.cloudera.org:8080/settings
Gerrit-Project: kudu
Gerrit-Branch: master
Gerrit-MessageType: newpatchset
Gerrit-Change-Id: I7c061b498e727a1a11e94e03c55530eeebfdf8dd
Gerrit-Change-Number: 14260
Gerrit-PatchSet: 2
Gerrit-Owner: Alexey Serbin <[email protected]>
Gerrit-Reviewer: Adar Dembo <[email protected]>
Gerrit-Reviewer: Andrew Wong <[email protected]>
Gerrit-Reviewer: Kudu Jenkins (120)
Gerrit-Reviewer: Volodymyr Verovkin <[email protected]>