You are viewing a plain text version of this content. The canonical link for it is here.
Posted to reviews@kudu.apache.org by "Will Berkeley (Code Review)" <ge...@cloudera.org> on 2017/11/28 17:50:27 UTC

[kudu-CR] [KUDU-2214] Voting while tablet copying says "voting while tombstoned"

Will Berkeley has uploaded this change for review. ( http://gerrit.cloudera.org:8080/8666


Change subject: [KUDU-2214] Voting while tablet copying says "voting while tombstoned"
......................................................................

[KUDU-2214] Voting while tablet copying says "voting while tombstoned"

The offending log statement now logs the tablet's consensus state
instead.

Change-Id: Id604bc6122c4291a27fe4c8543408b5be382742c
---
M src/kudu/consensus/raft_consensus.cc
1 file changed, 2 insertions(+), 2 deletions(-)



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

Gerrit-Project: kudu
Gerrit-Branch: master
Gerrit-MessageType: newchange
Gerrit-Change-Id: Id604bc6122c4291a27fe4c8543408b5be382742c
Gerrit-Change-Number: 8666
Gerrit-PatchSet: 1
Gerrit-Owner: Will Berkeley <wd...@gmail.com>

[kudu-CR] [KUDU-2214] Voting while tablet copying says "voting while tombstoned"

Posted by "Mike Percy (Code Review)" <ge...@cloudera.org>.
Mike Percy has posted comments on this change. ( http://gerrit.cloudera.org:8080/8666 )

Change subject: [KUDU-2214] Voting while tablet copying says "voting while tombstoned"
......................................................................


Patch Set 1:

(1 comment)

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

http://gerrit.cloudera.org:8080/#/c/8666/1/src/kudu/consensus/raft_consensus.cc@1552
PS1, Line 1552:       LOG_WITH_PREFIX_UNLOCKED(INFO) << Substitute("voting in state $0 ", State_Name(state_))
> I'm not sure this is an improvement. Can you give an example of what it loo
Let me restate that. This is likely an improvement but I'm not sure users will understand the significance of the message as written. I think the only possible states are running or stopped, so perhaps make the message something like "voting while consensus is " state_ == kRunning ? "running" : "stopped" or something like that?



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

Gerrit-Project: kudu
Gerrit-Branch: master
Gerrit-MessageType: comment
Gerrit-Change-Id: Id604bc6122c4291a27fe4c8543408b5be382742c
Gerrit-Change-Number: 8666
Gerrit-PatchSet: 1
Gerrit-Owner: Will Berkeley <wd...@gmail.com>
Gerrit-Reviewer: Kudu Jenkins
Gerrit-Reviewer: Mike Percy <mp...@apache.org>
Gerrit-Comment-Date: Wed, 29 Nov 2017 01:21:11 +0000
Gerrit-HasComments: Yes

[kudu-CR] [KUDU-2214] Voting while tablet copying says "voting while tombstoned"

Posted by "Will Berkeley (Code Review)" <ge...@cloudera.org>.
Will Berkeley has abandoned this change. ( http://gerrit.cloudera.org:8080/8666 )

Change subject: [KUDU-2214] Voting while tablet copying says "voting while tombstoned"
......................................................................


Abandoned

I never finished this, and I think Fengling is working on it now.
-- 
To view, visit http://gerrit.cloudera.org:8080/8666
To unsubscribe, visit http://gerrit.cloudera.org:8080/settings

Gerrit-Project: kudu
Gerrit-Branch: master
Gerrit-MessageType: abandon
Gerrit-Change-Id: Id604bc6122c4291a27fe4c8543408b5be382742c
Gerrit-Change-Number: 8666
Gerrit-PatchSet: 1
Gerrit-Owner: Will Berkeley <wd...@gmail.com>
Gerrit-Reviewer: Kudu Jenkins
Gerrit-Reviewer: Mike Percy <mp...@apache.org>
Gerrit-Reviewer: Will Berkeley <wd...@gmail.com>

[kudu-CR] [KUDU-2214] Voting while tablet copying says "voting while tombstoned"

Posted by "Mike Percy (Code Review)" <ge...@cloudera.org>.
Mike Percy has posted comments on this change. ( http://gerrit.cloudera.org:8080/8666 )

Change subject: [KUDU-2214] Voting while tablet copying says "voting while tombstoned"
......................................................................


Patch Set 1:

(1 comment)

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

http://gerrit.cloudera.org:8080/#/c/8666/1/src/kudu/consensus/raft_consensus.cc@1552
PS1, Line 1552:       LOG_WITH_PREFIX_UNLOCKED(INFO) << Substitute("voting in state $0 ", State_Name(state_))
I'm not sure this is an improvement. Can you give an example of what it looks like when voting while tombstoned vs. copying?



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

Gerrit-Project: kudu
Gerrit-Branch: master
Gerrit-MessageType: comment
Gerrit-Change-Id: Id604bc6122c4291a27fe4c8543408b5be382742c
Gerrit-Change-Number: 8666
Gerrit-PatchSet: 1
Gerrit-Owner: Will Berkeley <wd...@gmail.com>
Gerrit-Reviewer: Kudu Jenkins
Gerrit-Reviewer: Mike Percy <mp...@apache.org>
Gerrit-Comment-Date: Tue, 28 Nov 2017 20:45:10 +0000
Gerrit-HasComments: Yes

[kudu-CR] [KUDU-2214] Voting while tablet copying says "voting while tombstoned"

Posted by "Will Berkeley (Code Review)" <ge...@cloudera.org>.
Will Berkeley has posted comments on this change. ( http://gerrit.cloudera.org:8080/8666 )

Change subject: [KUDU-2214] Voting while tablet copying says "voting while tombstoned"
......................................................................


Patch Set 1:

> (1 comment)

OK. But looking at test logs more, it doesn't actually distinguish between voting while copying vs running while tombstoned, since if a server restarts with a tombstoned tablet its consensus state will be "Initializing" just like a copying tablet's, so maybe it's not so useful.


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

Gerrit-Project: kudu
Gerrit-Branch: master
Gerrit-MessageType: comment
Gerrit-Change-Id: Id604bc6122c4291a27fe4c8543408b5be382742c
Gerrit-Change-Number: 8666
Gerrit-PatchSet: 1
Gerrit-Owner: Will Berkeley <wd...@gmail.com>
Gerrit-Reviewer: Kudu Jenkins
Gerrit-Reviewer: Mike Percy <mp...@apache.org>
Gerrit-Reviewer: Will Berkeley <wd...@gmail.com>
Gerrit-Comment-Date: Thu, 30 Nov 2017 17:15:47 +0000
Gerrit-HasComments: No

[kudu-CR] [KUDU-2214] Voting while tablet copying says "voting while tombstoned"

Posted by "Mike Percy (Code Review)" <ge...@cloudera.org>.
Mike Percy has posted comments on this change. ( http://gerrit.cloudera.org:8080/8666 )

Change subject: [KUDU-2214] Voting while tablet copying says "voting while tombstoned"
......................................................................


Patch Set 1:

> OK. But looking at test logs more, it doesn't actually distinguish between voting while copying vs running while tombstoned, since if a server restarts with a tombstoned tablet its consensus state will be "Initializing" just like a copying tablet's, so maybe it's not so useful.

Ah, of course you're right. But wouldn't my suggested change still work in that case?


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

Gerrit-Project: kudu
Gerrit-Branch: master
Gerrit-MessageType: comment
Gerrit-Change-Id: Id604bc6122c4291a27fe4c8543408b5be382742c
Gerrit-Change-Number: 8666
Gerrit-PatchSet: 1
Gerrit-Owner: Will Berkeley <wd...@gmail.com>
Gerrit-Reviewer: Kudu Jenkins
Gerrit-Reviewer: Mike Percy <mp...@apache.org>
Gerrit-Reviewer: Will Berkeley <wd...@gmail.com>
Gerrit-Comment-Date: Thu, 30 Nov 2017 21:02:41 +0000
Gerrit-HasComments: No