forked from apache/kudu
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[master] Fix validation for NON_VOTER on adding a master
When a master is added, validation check is made whether the supplied master is already part of the Raft configuration. However this check doesn't include NON_VOTER masters and hence an InvalidArgument error is thrown later by the ChangeConfig implementation in Raft. "master add" CLI is designed to specifically catch Status::AlreadyPresent error to allow retries. This change basically checks for all masters in the committed Raft config irrespective of the member type on adding a master. Change-Id: I10e6b3617b032c74ebed4359b10c36b7b365d9b7 Reviewed-on: http://gerrit.cloudera.org:8080/17108 Tested-by: Bankim Bhavsar <[email protected]> Reviewed-by: Alexey Serbin <[email protected]>
- Loading branch information
Showing
3 changed files
with
34 additions
and
6 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