jonmv commented on code in PR #2154:
URL: https://github.com/apache/zookeeper/pull/2154#discussion_r1768203497
##########
zookeeper-server/src/main/java/org/apache/zookeeper/server/ZooKeeperServerMain.java:
##########
@@ -192,9 +192,7 @@ public void runFromConfig(ServerConfig config) throws
IOException, AdminServerEx
if (secureCnxnFactory != null) {
secureCnxnFactory.join();
}
- if (zkServer.canShutdown()) {
- zkServer.shutdown(true);
- }
+ zkServer.shutdown(true);
Review Comment:
We shouldn't check this in more places than one, and that should be inside
the server itself.
--
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]