Will Berkeley has posted comments on this change. ( http://gerrit.cloudera.org:8080/10536 )
Change subject: [tools] add 'kudu tablet set_attributes' sub-command ...................................................................... Patch Set 3: (5 comments) http://gerrit.cloudera.org:8080/#/c/10536/3/src/kudu/tools/tool_action_tablet.cc File src/kudu/tools/tool_action_tablet.cc: http://gerrit.cloudera.org:8080/#/c/10536/3/src/kudu/tools/tool_action_tablet.cc@66 PS3, Line 66: using kudu::consensus::ConsensusStatePB; > warning: using decl 'ConsensusStatePB' is unused [misc-unused-using-decls] Done http://gerrit.cloudera.org:8080/#/c/10536/3/src/kudu/tools/tool_action_tablet.cc@67 PS3, Line 67: using kudu::consensus::GetConsensusStateRequestPB; > warning: using decl 'GetConsensusStateRequestPB' is unused [misc-unused-usi Done http://gerrit.cloudera.org:8080/#/c/10536/3/src/kudu/tools/tool_action_tablet.cc@68 PS3, Line 68: using kudu::consensus::GetConsensusStateResponsePB; > warning: using decl 'GetConsensusStateResponsePB' is unused [misc-unused-us Done http://gerrit.cloudera.org:8080/#/c/10536/3/src/kudu/tools/tool_action_tablet.cc@254 PS3, Line 254: return Status::InvalidArgument("cannot set both PROMOTE and REPLACE"); > I agree it doesn't really make sense but what's the risk if we don't do thi You and Alexey would have a better idea than me. As I recall when I asked Alexey about it, I think he said the replace "wins" when set on a voter, so in that case it's equivalent to just setting replace. I think it's a good sanity check since a user shouldn't ever intentionally set both, regardless of how risky it is. http://gerrit.cloudera.org:8080/#/c/10536/3/src/kudu/tools/tool_action_tablet.cc@273 PS3, Line 273: change->mutable_peer()->mutable_attrs()->set_promote(promote); > We may likely add additional attributes in the future, so I think if you do Done -- To view, visit http://gerrit.cloudera.org:8080/10536 To unsubscribe, visit http://gerrit.cloudera.org:8080/settings Gerrit-Project: kudu Gerrit-Branch: master Gerrit-MessageType: comment Gerrit-Change-Id: Ib304715100ba9062558863f140aa309fd604ace3 Gerrit-Change-Number: 10536 Gerrit-PatchSet: 3 Gerrit-Owner: Alexey Serbin <[email protected]> Gerrit-Reviewer: Alexey Serbin <[email protected]> Gerrit-Reviewer: Kudu Jenkins Gerrit-Reviewer: Mike Percy <[email protected]> Gerrit-Reviewer: Tidy Bot Gerrit-Reviewer: Will Berkeley <[email protected]> Gerrit-Comment-Date: Mon, 11 Jun 2018 21:48:39 +0000 Gerrit-HasComments: Yes
