Andrew Wong has submitted this change and it was merged. ( 
http://gerrit.cloudera.org:8080/15091 )

Change subject: KUDU-3011 p7: add tool to quiesce server
......................................................................

KUDU-3011 p7: add tool to quiesce server

Adds the following commands:
$ kudu tserver quiesce start <tserver_addr>
  - sets the server to start quiescing
  - optionally, if --error_if_not_fully_quiesced is true, the server
    will respond with the number of leaders and active scanners, and if
    either are non-zero, the tool will return an error
  - users can orchestrate this to wait for a fully quiesced server. An
    example of this is shown in RollingRestartITest.
$ kudu tserver quiesce stop <tserver_addr>
  - sets the server to not be quiescing

Tests:
- Added some tests to exercise the quiescing tool in the context of a
  rolling restart alongside the maintenance mode tooling.
- Also added some basic testing for the quiescing tooling alone.

Change-Id: I89657808cc2b0afc4e1b37ce75937ab12e098d9c
Reviewed-on: http://gerrit.cloudera.org:8080/15091
Tested-by: Kudu Jenkins
Reviewed-by: Adar Dembo <a...@cloudera.com>
Reviewed-by: Alexey Serbin <aser...@cloudera.com>
---
M src/kudu/integration-tests/CMakeLists.txt
M src/kudu/integration-tests/maintenance_mode-itest.cc
M src/kudu/integration-tests/tablet_server_quiescing-itest.cc
M src/kudu/integration-tests/test_workload.cc
M src/kudu/integration-tests/test_workload.h
M src/kudu/tools/kudu-tool-test.cc
M src/kudu/tools/tool_action_tserver.cc
M src/kudu/tools/tool_test_util.cc
M src/kudu/tools/tool_test_util.h
M src/kudu/tserver/tablet_service.cc
M src/kudu/tserver/tablet_service.h
M src/kudu/tserver/tserver_admin.proto
12 files changed, 651 insertions(+), 55 deletions(-)

Approvals:
  Kudu Jenkins: Verified
  Adar Dembo: Looks good to me, approved
  Alexey Serbin: Looks good to me, but someone else must approve

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

Gerrit-Project: kudu
Gerrit-Branch: master
Gerrit-MessageType: merged
Gerrit-Change-Id: I89657808cc2b0afc4e1b37ce75937ab12e098d9c
Gerrit-Change-Number: 15091
Gerrit-PatchSet: 12
Gerrit-Owner: Andrew Wong <aw...@cloudera.com>
Gerrit-Reviewer: Adar Dembo <a...@cloudera.com>
Gerrit-Reviewer: Alexey Serbin <aser...@cloudera.com>
Gerrit-Reviewer: Andrew Wong <aw...@cloudera.com>
Gerrit-Reviewer: Kudu Jenkins (120)
Gerrit-Reviewer: Tidy Bot (241)

Reply via email to