-
Notifications
You must be signed in to change notification settings - Fork 653
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[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 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 in the cluster fails irrecoverably. I also added validators for the related flags to keep things more consistent and report misconfiguration as early as possible. This patch contains a few test scenarios to cover the newly introduced functionality. Change-Id: I86191fcdc1b4ed6670f33ba7176d28dbd1df541f Reviewed-on: http://gerrit.cloudera.org:8080/17684 Tested-by: Alexey Serbin <[email protected]> Reviewed-by: Mahesh Reddy <[email protected]> Reviewed-by: Attila Bukor <[email protected]>
- Loading branch information
1 parent
35b5664
commit 6cb1548
Showing
3 changed files
with
226 additions
and
57 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters