fx19880617 commented on a change in pull request #6558:
URL: https://github.com/apache/incubator-pinot/pull/6558#discussion_r574086569
##########
File path:
pinot-common/src/main/java/org/apache/pinot/common/utils/ZkStarter.java
##########
@@ -154,18 +156,23 @@ public synchronized static ZookeeperInstance
startLocalZkServer(final int port,
public void run() {
try {
zookeeperServerMain.initializeAndRun(args);
- } catch (QuorumPeerConfig.ConfigException e) {
- LOGGER.warn("Caught exception while starting ZK", e);
- } catch (IOException e) {
+ } catch (Exception e) {
LOGGER.warn("Caught exception while starting ZK", e);
}
}
}.start();
// Wait until the ZK server is started
- ZkClient client = new ZkClient("localhost:" + port, 10000);
- client.waitUntilConnected(10L, TimeUnit.SECONDS);
- client.close();
+ for (int i = 0; i < 10; i++) {
Review comment:
ah, yes!
added a break after the `client.close()`
----------------------------------------------------------------
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]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]