sijie 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_r147257146
##########
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:
@eolivelli my question about 'AutoCloseable' is not about this change, but
just in general.
regarding try-with-resources blocks, I would say for new codes - yes. but
for the legacy codes, I would suggest not changing at this pull request.
because it would involve a lot of unnecessary code structure changes.
----------------------------------------------------------------
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