sohami commented on a change in pull request #1702: DRILL-7107 Unable to 
connect to Drill 1.15 through ZK
URL: https://github.com/apache/drill/pull/1702#discussion_r267132228
 
 

 ##########
 File path: 
exec/java-exec/src/main/java/org/apache/drill/exec/server/Drillbit.java
 ##########
 @@ -173,7 +175,11 @@ public Drillbit(
       coord = serviceSet.getCoordinator();
       storeProvider = new CachingPersistentStoreProvider(new 
LocalPersistentStoreProvider(config));
     } else {
-      coord = new ZKClusterCoordinator(config, context);
+      String clusterId = config.getString(ExecConstants.SERVICE_NAME);
+      String zkRoot = config.getString(ExecConstants.ZK_ROOT);
+      String drillClusterPath = "/" + zkRoot + "/" +  clusterId;
+      ACLProvider aclProvider = ZKACLProviderFactory.getACLProvider(config, 
drillClusterPath, context);
 
 Review comment:
   please use `final`

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


With regards,
Apache Git Services

Reply via email to