Alexey Serbin has uploaded this change for review. ( 
http://gerrit.cloudera.org:8080/22516


Change subject: KUDU-3641 fix flaky TestNewLeaderCantResolvePeers (take 2)
......................................................................

KUDU-3641 fix flaky TestNewLeaderCantResolvePeers (take 2)

I noticed that even after [1] the TestNewLeaderCantResolvePeers was
still failing in about once in 60 runs [2], so I took a closer look.

It turns out StartElection() doesn't trigger a re-election if it
arriving at the current Raft leader.  To address that, this patch
replaces StartElection() back with LeaderStepDown() but with new
target leader being the tablet replica at the third tablet server.

This is a follow-up to [1].

[1] https://github.com/apache/kudu/commit/6c77ec875
[2] 
http://dist-test.cloudera.org:8080/test_drilldown?test_name=raft_consensus_election-itest

Change-Id: I3bee924353079f7c8bfab6d0d5a6367bd1ee243e
---
M src/kudu/integration-tests/raft_consensus_election-itest.cc
1 file changed, 5 insertions(+), 2 deletions(-)



  git pull ssh://gerrit.cloudera.org:29418/kudu refs/changes/16/22516/1
--
To view, visit http://gerrit.cloudera.org:8080/22516
To unsubscribe, visit http://gerrit.cloudera.org:8080/settings

Gerrit-Project: kudu
Gerrit-Branch: master
Gerrit-MessageType: newchange
Gerrit-Change-Id: I3bee924353079f7c8bfab6d0d5a6367bd1ee243e
Gerrit-Change-Number: 22516
Gerrit-PatchSet: 1
Gerrit-Owner: Alexey Serbin <[email protected]>

Reply via email to