yangl opened a new issue #9474:
URL: https://github.com/apache/pulsar/issues/9474


   **Describe the bug**
   
   
   the `delete-cluster-metadata` command should clean all metadata in zookeeper 
inited by `bin/pulsar initialize-cluster-metadata` 
   
   **To Reproduce**
   
   
   Steps to reproduce the behavior:
   1. init cluster metadata by 
https://pulsar.apache.org/docs/en/deploy-bare-metal/#initialize-cluster-metadata
   2. use the zkCli connect to the localzk, `ls /`, get the 
   `zookeeper
   stream
   bookies
   ledgers
   managed-ledgers
   namespace
   admin
   pulsar`
   the `ledgers` may not exist when use --existing-bk-metadata-service-uri
   3. teardown the cluster by `delete-cluster-metadata` command
   4. connnect to the loaclzk, execute the `ls /` ,get the 
   `zookeeper
   ledgers
   admin
   pulsar`
   
   **Expected behavior**
   
   the `ledgers admin pulsar` path should delete too
   
   
   **Additional context**
   
   in the PulsarClusterMetadataTeardown.java file,some properties should 
correct, as follow:
   
   1. "-cluster" -->""--cluster"" 
   2. "--bookkeeper-metadata-service-uri" --> 
"--existing-bk-metadata-service-uri"
   
   last, i'll will fix this soon.
   


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to