Andrew Wong has submitted this change and it was merged. ( http://gerrit.cloudera.org:8080/14221 )
Change subject: KUDU-2069 p3: add RPC endpoint for maintenance mode ...................................................................... KUDU-2069 p3: add RPC endpoint for maintenance mode This patch adds an RPC endpoint to the master to allow entering and exiting maintenance mode. The endpoint requires superuser privileges, as this is meant to be used for administrative purposes. The endpoint is currently hidden behind a flag, as maintenance mode behavior is still in progress. I'm introducing the endpoint now to facilitate testing and will remove the flag once finished. The requests are represented as explicit edges in a (currently simple) state machine transitioning a given tserver between different tserver states. Basic checking is done to validate requests, and a test is added for this checking. Change-Id: I9d565bd745507f2511b91a96d2d446240c5406b5 Reviewed-on: http://gerrit.cloudera.org:8080/14221 Reviewed-by: Andrew Wong <[email protected]> Tested-by: Kudu Jenkins --- M src/kudu/master/catalog_manager.cc M src/kudu/master/master.proto M src/kudu/master/master_service.cc M src/kudu/master/master_service.h M src/kudu/master/ts_state-test.cc 5 files changed, 158 insertions(+), 0 deletions(-) Approvals: Andrew Wong: Looks good to me, approved Kudu Jenkins: Verified -- To view, visit http://gerrit.cloudera.org:8080/14221 To unsubscribe, visit http://gerrit.cloudera.org:8080/settings Gerrit-Project: kudu Gerrit-Branch: master Gerrit-MessageType: merged Gerrit-Change-Id: I9d565bd745507f2511b91a96d2d446240c5406b5 Gerrit-Change-Number: 14221 Gerrit-PatchSet: 7 Gerrit-Owner: Andrew Wong <[email protected]> Gerrit-Reviewer: Adar Dembo <[email protected]> Gerrit-Reviewer: Alexey Serbin <[email protected]> Gerrit-Reviewer: Andrew Wong <[email protected]> Gerrit-Reviewer: Greg Solovyev <[email protected]> Gerrit-Reviewer: Hao Hao <[email protected]> Gerrit-Reviewer: Kudu Jenkins (120)
