You are viewing a plain text version of this content. The canonical link for it is here.
Posted to reviews@kudu.apache.org by "Adar Dembo (Code Review)" <ge...@cloudera.org> on 2017/08/01 01:21:21 UTC

[kudu-CR] consensus: always add backoff when snoozing failure detectors

Hello Mike Percy, Todd Lipcon,

I'd like you to do a code review.  Please visit

    http://gerrit.cloudera.org:8080/7546

to review the following change.

Change subject: consensus: always add backoff when snoozing failure detectors
......................................................................

consensus: always add backoff when snoozing failure detectors

This change stems from a conversation I had with Mike over Slack, wherein
he reasoned that there isn't a single case where we should _not_ add
backoff (and thus jitter) when snoozing the failure detector.

Change-Id: Icf37a8d39bd6c2391c747f95ff7c7a001ded9401
---
M src/kudu/consensus/raft_consensus.cc
M src/kudu/consensus/raft_consensus.h
2 files changed, 23 insertions(+), 26 deletions(-)


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

Gerrit-MessageType: newchange
Gerrit-Change-Id: Icf37a8d39bd6c2391c747f95ff7c7a001ded9401
Gerrit-PatchSet: 1
Gerrit-Project: kudu
Gerrit-Branch: master
Gerrit-Owner: Adar Dembo <ad...@cloudera.com>
Gerrit-Reviewer: Mike Percy <mp...@apache.org>
Gerrit-Reviewer: Todd Lipcon <to...@apache.org>

[kudu-CR] consensus: always add backoff when snoozing failure detectors

Posted by "Adar Dembo (Code Review)" <ge...@cloudera.org>.
Hello Kudu Jenkins,

I'd like you to reexamine a change.  Please visit

    http://gerrit.cloudera.org:8080/7546

to look at the new patch set (#2).

Change subject: consensus: always add backoff when snoozing failure detectors
......................................................................

consensus: always add backoff when snoozing failure detectors

This change stems from a conversation I had with Mike over Slack, wherein
he reasoned that there isn't a single case where we should _not_ add
backoff (and thus jitter) when snoozing the failure detector.

Change-Id: Icf37a8d39bd6c2391c747f95ff7c7a001ded9401
---
M src/kudu/consensus/raft_consensus.cc
M src/kudu/consensus/raft_consensus.h
2 files changed, 23 insertions(+), 26 deletions(-)


  git pull ssh://gerrit.cloudera.org:29418/kudu refs/changes/46/7546/2
-- 
To view, visit http://gerrit.cloudera.org:8080/7546
To unsubscribe, visit http://gerrit.cloudera.org:8080/settings

Gerrit-MessageType: newpatchset
Gerrit-Change-Id: Icf37a8d39bd6c2391c747f95ff7c7a001ded9401
Gerrit-PatchSet: 2
Gerrit-Project: kudu
Gerrit-Branch: master
Gerrit-Owner: Adar Dembo <ad...@cloudera.com>
Gerrit-Reviewer: Kudu Jenkins
Gerrit-Reviewer: Mike Percy <mp...@apache.org>
Gerrit-Reviewer: Todd Lipcon <to...@apache.org>

[kudu-CR] consensus: always add backoff when snoozing failure detectors

Posted by "Adar Dembo (Code Review)" <ge...@cloudera.org>.
Adar Dembo has abandoned this change.

Change subject: consensus: always add backoff when snoozing failure detectors
......................................................................


Abandoned

Gonna let this go; see the comment I left in raft_consensus.cc as to why.

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

Gerrit-MessageType: abandon
Gerrit-Change-Id: Icf37a8d39bd6c2391c747f95ff7c7a001ded9401
Gerrit-PatchSet: 4
Gerrit-Project: kudu
Gerrit-Branch: master
Gerrit-Owner: Adar Dembo <ad...@cloudera.com>
Gerrit-Reviewer: Adar Dembo <ad...@cloudera.com>
Gerrit-Reviewer: David Ribeiro Alves <da...@gmail.com>
Gerrit-Reviewer: Kudu Jenkins
Gerrit-Reviewer: Mike Percy <mp...@apache.org>
Gerrit-Reviewer: Todd Lipcon <to...@apache.org>

[kudu-CR] consensus: always add backoff when snoozing failure detectors

Posted by "Adar Dembo (Code Review)" <ge...@cloudera.org>.
Hello David Ribeiro Alves, Todd Lipcon, Kudu Jenkins,

I'd like you to reexamine a change.  Please visit

    http://gerrit.cloudera.org:8080/7546

to look at the new patch set (#4).

Change subject: consensus: always add backoff when snoozing failure detectors
......................................................................

consensus: always add backoff when snoozing failure detectors

This change stems from a conversation I had with Mike over Slack, wherein
he reasoned that there isn't a single case where we should _not_ add
backoff (and thus jitter) when snoozing the failure detector.

Change-Id: Icf37a8d39bd6c2391c747f95ff7c7a001ded9401
---
M src/kudu/consensus/raft_consensus.cc
M src/kudu/consensus/raft_consensus.h
2 files changed, 23 insertions(+), 26 deletions(-)


  git pull ssh://gerrit.cloudera.org:29418/kudu refs/changes/46/7546/4
-- 
To view, visit http://gerrit.cloudera.org:8080/7546
To unsubscribe, visit http://gerrit.cloudera.org:8080/settings

Gerrit-MessageType: newpatchset
Gerrit-Change-Id: Icf37a8d39bd6c2391c747f95ff7c7a001ded9401
Gerrit-PatchSet: 4
Gerrit-Project: kudu
Gerrit-Branch: master
Gerrit-Owner: Adar Dembo <ad...@cloudera.com>
Gerrit-Reviewer: David Ribeiro Alves <da...@gmail.com>
Gerrit-Reviewer: Kudu Jenkins
Gerrit-Reviewer: Mike Percy <mp...@apache.org>
Gerrit-Reviewer: Todd Lipcon <to...@apache.org>

[kudu-CR] consensus: always add backoff when snoozing failure detectors

Posted by "Adar Dembo (Code Review)" <ge...@cloudera.org>.
Adar Dembo has posted comments on this change.

Change subject: consensus: always add backoff when snoozing failure detectors
......................................................................


Patch Set 4:

(1 comment)

http://gerrit.cloudera.org:8080/#/c/7546/4/src/kudu/consensus/raft_consensus.cc
File src/kudu/consensus/raft_consensus.cc:

Line 1078: Status RaftConsensus::UpdateReplica(const ConsensusRequestPB* request,
I'm having second thoughts about this patch due to the change in this function. This is the common case for snoozing the failure detector, and the backoff is, at minimum, HB_PERIOD * MAX_MISSED_PERIODS. The failure monitor also includes that amount when declaring a node dead, which means we're double counting it in the common case.


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

Gerrit-MessageType: comment
Gerrit-Change-Id: Icf37a8d39bd6c2391c747f95ff7c7a001ded9401
Gerrit-PatchSet: 4
Gerrit-Project: kudu
Gerrit-Branch: master
Gerrit-Owner: Adar Dembo <ad...@cloudera.com>
Gerrit-Reviewer: Adar Dembo <ad...@cloudera.com>
Gerrit-Reviewer: David Ribeiro Alves <da...@gmail.com>
Gerrit-Reviewer: Kudu Jenkins
Gerrit-Reviewer: Mike Percy <mp...@apache.org>
Gerrit-Reviewer: Todd Lipcon <to...@apache.org>
Gerrit-HasComments: Yes