Hello Tidy Bot, Alexey Serbin, Kudu Jenkins, Adar Dembo, Greg Solovyev,
I'd like you to reexamine a change. Please visit
http://gerrit.cloudera.org:8080/14217
to look at the new patch set (#8).
Change subject: KUDU-2069 p1: add persistent tserver maintenance mode
......................................................................
KUDU-2069 p1: add persistent tserver maintenance mode
Adds tablet server states to the master, with which to represent tablet
server maintenance mode (and in the future, decommissioning).
The on-disk state is represented as an entry in the system catalog
table, keyed by the tserver UUID. The in-memory state is maintained by
the TSManager as a mapping from tserver UUID to the new TServerStatePB
enum.
Note that this patch only introduces the states internally and doesn't
expose a way for users to set them.
Testing:
- test to check that maintenance mode is maintained through a restart of
the master
- test to ensure that repeated setting of state does not affect the
in-memory tserver states
- test that concurrently updates tserver state and ensures that the
results in-memory match with what's on-disk
Change-Id: Ib669b43b3cee171c4c7dbd54041e29c30cb9f767
---
M src/kudu/master/CMakeLists.txt
M src/kudu/master/catalog_manager.cc
M src/kudu/master/master.proto
M src/kudu/master/sys_catalog.cc
M src/kudu/master/sys_catalog.h
M src/kudu/master/ts_manager.cc
M src/kudu/master/ts_manager.h
A src/kudu/master/ts_state-test.cc
8 files changed, 444 insertions(+), 21 deletions(-)
git pull ssh://gerrit.cloudera.org:29418/kudu refs/changes/17/14217/8
--
To view, visit http://gerrit.cloudera.org:8080/14217
To unsubscribe, visit http://gerrit.cloudera.org:8080/settings
Gerrit-Project: kudu
Gerrit-Branch: master
Gerrit-MessageType: newpatchset
Gerrit-Change-Id: Ib669b43b3cee171c4c7dbd54041e29c30cb9f767
Gerrit-Change-Number: 14217
Gerrit-PatchSet: 8
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: Kudu Jenkins (120)
Gerrit-Reviewer: Tidy Bot (241)