eolivelli commented on a change in pull request #13891:
URL: https://github.com/apache/pulsar/pull/13891#discussion_r792642225



##########
File path: 
pulsar-metadata/src/main/java/org/apache/pulsar/metadata/impl/ZKMetadataStore.java
##########
@@ -507,7 +508,7 @@ public ZooKeeper getZkClient() {
         int chrootIndex = metadataURL.indexOf("/");
         if (chrootIndex > 0) {
             String chrootPath = metadataURL.substring(chrootIndex);
-            String zkConnectForChrootCreation = metadataURL.substring(0, 
chrootIndex);
+            String zkConnectForChrootCreation = metadataURL.substring(0, 
chrootIndex).replace("zk:", "");

Review comment:
       we should drop "zk:" only if it is in the beginning of the string




-- 
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.

To unsubscribe, e-mail: [email protected]

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


Reply via email to