-
Notifications
You must be signed in to change notification settings - Fork 86
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[admin-tool] Added command to recover stores from graveyard and admin…
… channel (#822) * [admin-tool] Added command to recover stores from graveyard and admin channel When we accidentally remove some being-used stores from the Venice platform, we can use the newly added command to recover the metadata and schemas, but not data. The idea is as follows: 1. If the store already exists, the command will exit. 2. If the store is not found in store graveyard, not recoverable. 3. Then retrieve the store config from graveyard. 4. Scan the corresponding admin channel to collect the latest key/value schemas. 5. Create the store, register the schemas and then update the store configs. Sample command: java -jar venice-admin-tool-all.jar --recover-store-metadata --url ${parent.controller.url} --venice-zookeeper-url {parent zookeeper url} --zk-ssl-config-file ./zk.ssl --kafka-bootstrap-servers {Parent Kafka url} --kafka-consumer-config-file ./ssl.config --store {store_name} --repair true --graveyard-clusters {cluster1,cluster2} Sample zk.ssl: zookeeper.client.secure=true zookeeper.clientCnxnSocket=org.apache.zookeeper.ClientCnxnSocketNetty zookeeper.ssl.keyStore.location=./identity.p12 zookeeper.ssl.keyStore.password=xxxx zookeeper.ssl.keyStore.type=PKCS12 zookeeper.ssl.trustStore.location=./cacerts zookeeper.ssl.trustStore.password=xxxxx zookeeper.ssl.trustStore.type=JKS jute.maxbuffer=4194304 Sample ssl.config: security.protocol=SSL ssl.protocol=TLS ssl.trustmanager.algorithm=SunX509 ssl.keymanager.algorithm=SunX509 ssl.keystore.type=pkcs12 ssl.keystore.location=./identity.p12 ssl.keystore.password=xxxx ssl.key.password=xxxx ssl.truststore.type=JKS ssl.truststore.location=./cacerts ssl.truststore.password=xxxx ssl.secure.random.implementation=SHA1PRNG We can use the existing command in AdminTool to run an empty push against the recovered store if necessary. * Fixed spotbugs issue * more tweaks * Disabled unit test coverage threshold in admin-tool and add integration test * excluded admin-tool diff coverage
- Loading branch information
Showing
8 changed files
with
671 additions
and
44 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -36,5 +36,5 @@ jar { | |
} | ||
|
||
ext { | ||
jacocoCoverageThreshold = 0.04 | ||
jacocoCoverageThreshold = 0.00 | ||
} |
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.