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][tool] KUDU-2181 Tool to orchestrate adding a master
This tool orchestrates the mechanism to add a master to an existing Kudu cluster using the changes made previously including the add master Raft change config. This tool must be run from the master being added. Outline of steps: - Bring up master from supplied flags - Invoke add master Raft change config RPC - Determine whether new master has caught up from WAL and ksck is healthy. - If yes, we are done else continue below - Delete system catalog on the new master - Copy system catalog from one of the existing masters - Verify ksck is healthy. - Shutdown the new master The tool now manages bringing up the new master process, copying system catalog and hence bunch of functionality from the dynamic_multi_master test is no longer needed and hence deleted. Using Subprocess we need to shutdown the new master and hence can't verify certain state which included contacting new master directly immediately after adding new master. Function VerifyClusterAfterMasterAddition() covers comprehensive verification steps so not missing out by removing those steps. This change also includes some refactoring in ExternalDaemon to fetch Kerberos related configuration to be used outside ExternalMiniCluster. Change-Id: I8f99cf2b3f1738c4127c7e7288beab61daf42e7b Reviewed-on: http://gerrit.cloudera.org:8080/17267 Reviewed-by: Andrew Wong <[email protected]> Tested-by: Kudu Jenkins
- Loading branch information
Showing
10 changed files
with
610 additions
and
373 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
Large diffs are not rendered by default.
Oops, something went wrong.
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
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
Oops, something went wrong.