Adar Dembo has posted comments on this change. ( http://gerrit.cloudera.org:8080/8134 )
Change subject: consensus: disarm failure detector around elections ...................................................................... Patch Set 1: (4 comments) http://gerrit.cloudera.org:8080/#/c/8134/1//COMMIT_MSG Commit Message: http://gerrit.cloudera.org:8080/#/c/8134/1//COMMIT_MSG@20 PS1, Line 20: WIP because it's still pretty brittle; maybe there's a more robust approach? > maybe there are some DCHECKs we can add to ensure that whenever an electio That should already be guaranteed by virtue of using a one-shot timer (i.e. that's tested in periodic-test.cc). http://gerrit.cloudera.org:8080/#/c/8134/1/src/kudu/consensus/raft_consensus.cc File src/kudu/consensus/raft_consensus.cc: http://gerrit.cloudera.org:8080/#/c/8134/1/src/kudu/consensus/raft_consensus.cc@543 PS1, Line 543: > Is it possible for this to fail for any other (transient) reason, eg failur Sure, I can add such a CHECK. http://gerrit.cloudera.org:8080/#/c/8134/1/src/kudu/consensus/raft_consensus.cc@2189 PS1, Line 2189: // that RaftConsensus has stopped and we no longer need failure detection. > same Done http://gerrit.cloudera.org:8080/#/c/8134/1/src/kudu/consensus/raft_consensus.cc@2299 PS1, Line 2299: // TODO(adar): is this still possible now that the failure detector isn't : // armed during elections? > yea it doesn't seem possible anymore since step '2' says t hat the timer ex Yeah, sounds plausible. I'll adjust the comment. -- To view, visit http://gerrit.cloudera.org:8080/8134 To unsubscribe, visit http://gerrit.cloudera.org:8080/settings Gerrit-Project: kudu Gerrit-Branch: master Gerrit-MessageType: comment Gerrit-Change-Id: Idcd311cee028c48e908f290d60c474e8a4557d97 Gerrit-Change-Number: 8134 Gerrit-PatchSet: 1 Gerrit-Owner: Adar Dembo <[email protected]> Gerrit-Reviewer: Adar Dembo <[email protected]> Gerrit-Reviewer: Kudu Jenkins Gerrit-Reviewer: Tidy Bot Gerrit-Reviewer: Todd Lipcon <[email protected]> Gerrit-Comment-Date: Thu, 26 Oct 2017 00:14:39 +0000 Gerrit-HasComments: Yes
