Adar Dembo has posted comments on this change. ( http://gerrit.cloudera.org:8080/10536 )
Change subject: [tools] add 'kudu tablet set_attributes' sub-command ...................................................................... Patch Set 6: (8 comments) http://gerrit.cloudera.org:8080/#/c/10536/6//COMMIT_MSG Commit Message: http://gerrit.cloudera.org:8080/#/c/10536/6//COMMIT_MSG@7 PS6, Line 7: sub-command Nit: command Below too. http://gerrit.cloudera.org:8080/#/c/10536/6//COMMIT_MSG@9 PS6, Line 9: Introduced 'kudu tablet set_attributes' sub-command for the kudu CLI Do we need a corresponding get_attributes command in order to figure out what attribute changes should be made? Or do the current attributes not matter; we always know, for a given tablet, whether PROMOTE or REPLACE should be set given whatever circumstances? http://gerrit.cloudera.org:8080/#/c/10536/6/src/kudu/tools/kudu-admin-test.cc File src/kudu/tools/kudu-admin-test.cc: http://gerrit.cloudera.org:8080/#/c/10536/6/src/kudu/tools/kudu-admin-test.cc@1498 PS6, Line 1498: const string replace_flag = "--attribute_replace"; : const string promote_flag = "--attribute_promote"; Nit: could be const char*, and should be named kFooFlag since they're constants. http://gerrit.cloudera.org:8080/#/c/10536/6/src/kudu/tools/kudu-admin-test.cc@1500 PS6, Line 1500: const MonoDelta timeout = MonoDelta::FromSeconds(10); Nit: kTimeout http://gerrit.cloudera.org:8080/#/c/10536/6/src/kudu/tools/kudu-admin-test.cc@1582 PS6, Line 1582: string err; We're not using err in this call; could we use a different overload of RunKuduTool? http://gerrit.cloudera.org:8080/#/c/10536/6/src/kudu/tools/kudu-admin-test.cc@1605 PS6, Line 1605: ASSERT_TRUE(!peer.attrs().replace()); : ASSERT_TRUE(!peer.attrs().promote()); ASSERT_FALSE() wouldn't be more idiomatic? Above too. http://gerrit.cloudera.org:8080/#/c/10536/6/src/kudu/tools/tool_action_tablet.cc File src/kudu/tools/tool_action_tablet.cc: http://gerrit.cloudera.org:8080/#/c/10536/6/src/kudu/tools/tool_action_tablet.cc@255 PS6, Line 255: "must set one of PROMOTE or REPLACE" Nit: maybe say --atribute_promote and --attribute_replace, to draw a more direct link to the gflags? http://gerrit.cloudera.org:8080/#/c/10536/6/src/kudu/tools/tool_action_tablet.cc@353 PS6, Line 353: sub-command Nit: isn't this just a 'command'? Why 'sub-command'? -- 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: 6 Gerrit-Owner: Alexey Serbin <[email protected]> Gerrit-Reviewer: Adar Dembo <[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: Thu, 21 Jun 2018 23:01:02 +0000 Gerrit-HasComments: Yes
