Alexey Serbin has uploaded this change for review. ( 
http://gerrit.cloudera.org:8080/17684


Change subject: [catalog_manager] introduce --min_num_replicas flag
......................................................................

[catalog_manager] introduce --min_num_replicas flag

This patch introduces a flag for Kudu master to enforce the minimum
number of replicas for newly created tables in a Kudu cluster.  Unless
overridden, --min_num_replicas is set to 1 by default.

For example, setting --min_num_replicas=3 enforces every new table to
have at least 3 replicas for each of its tablets, so there cannot be
a data loss when a single tablet server fails irrecoverably.

I also added validators for the related flags to keep things more
consistent and report misconfiguration errors as early as possible.
This patch also contains a few test scenarios to cover the newly
introduced functionality.

Change-Id: I86191fcdc1b4ed6670f33ba7176d28dbd1df541f
---
M src/kudu/client/client-test.cc
M src/kudu/master/catalog_manager.cc
M src/kudu/master/master.proto
3 files changed, 182 insertions(+), 36 deletions(-)



  git pull ssh://gerrit.cloudera.org:29418/kudu refs/changes/84/17684/1
--
To view, visit http://gerrit.cloudera.org:8080/17684
To unsubscribe, visit http://gerrit.cloudera.org:8080/settings

Gerrit-Project: kudu
Gerrit-Branch: master
Gerrit-MessageType: newchange
Gerrit-Change-Id: I86191fcdc1b4ed6670f33ba7176d28dbd1df541f
Gerrit-Change-Number: 17684
Gerrit-PatchSet: 1
Gerrit-Owner: Alexey Serbin <[email protected]>

Reply via email to