eolivelli commented on a change in pull request #663: Issue 662: Introduce 
Bookie Registration Manager for bookie server
URL: https://github.com/apache/bookkeeper/pull/663#discussion_r147348517
 
 

 ##########
 File path: 
bookkeeper-server/src/main/java/org/apache/bookkeeper/bookie/BookieShell.java
 ##########
 @@ -261,18 +264,15 @@ int runCmd(CommandLine cmdLine) throws Exception {
             boolean result = Bookie.format(conf, interactive, force);
             // delete cookie
             if (cmdLine.hasOption("d")) {
-                ZooKeeperClient zkc =
-                        ZooKeeperClient.newBuilder()
-                                .connectString(conf.getZkServers())
-                                .sessionTimeoutMs(conf.getZkTimeout())
-                                .build();
+                RegistrationManager rm = new ZKRegistrationManager();
 
 Review comment:
   @sijie  @zhaijack here is the issue 
https://github.com/apache/bookkeeper/issues/668
   Sorry for going off-topic.
   
   @sijie  for "AutoCloseable" in general I think that AutoCloseable is an 
higher level construct instead of java.io.Closeable which is only for I/O 
subsystems and is somehow legacy
   
   I understand that we should leave this patch only for the abstraction of the 
RegistrationManager and I am +1

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on 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