jiajunwang commented on a change in pull request #642: Fix handleNewSession
creating ephemeral node with expired session
URL: https://github.com/apache/helix/pull/642#discussion_r363999846
##########
File path:
helix-core/src/main/java/org/apache/helix/manager/zk/ParticipantManager.java
##########
@@ -178,89 +194,18 @@ private void createLiveInstance() {
}
}
- boolean retry;
- do {
- retry = false;
- try {
- _zkclient.createEphemeral(liveInstancePath, liveInstance.getRecord());
- LOG.info("LiveInstance created, path: " + liveInstancePath + ",
sessionId: " + liveInstance.getEphemeralOwner());
- } catch (ZkNodeExistsException e) {
Review comment:
Although it should be impossible that we see this exception anymore, shall
we still catch it and throw HelixException?
----------------------------------------------------------------
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
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]