You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pulsar.apache.org by GitBox <gi...@apache.org> on 2022/10/18 07:40:37 UTC

[GitHub] [pulsar] coderzc commented on a diff in pull request #18072: [fix][broker] Fix unable to start multiple bookies for BKCluster

coderzc commented on code in PR #18072:
URL: https://github.com/apache/pulsar/pull/18072#discussion_r997833645


##########
pulsar-metadata/src/main/java/org/apache/pulsar/metadata/bookkeeper/BKCluster.java:
##########
@@ -201,13 +201,13 @@ protected void cleanupTempDirs() throws Exception {
     private ServerConfiguration newServerConfiguration(int index) throws Exception {
         File dataDir;
         if (clusterConf.dataDir != null) {
-            dataDir = new File(clusterConf.dataDir);
+            dataDir = new File(clusterConf.dataDir + "/" + index);

Review Comment:
   Indeed, I updated the code to be compatible with the original data directory.



-- 
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: commits-unsubscribe@pulsar.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org