Github user HeartSaVioR commented on a diff in the pull request:

    https://github.com/apache/storm/pull/1535#discussion_r69409241
  
    --- Diff: 
storm-core/src/jvm/org/apache/storm/cluster/StormClusterStateImpl.java ---
    @@ -219,6 +219,8 @@ public void stateChanged(CuratorFramework 
curatorFramework, ConnectionState conn
                     LOG.info("Connection state listener invoked, zookeeper 
connection state has changed to {}", connectionState);
                     if (connectionState.equals(ConnectionState.RECONNECTED)) {
                         LOG.info("Connection state has changed to reconnected 
so setting nimbuses entry one more time");
    +                    // explicit delete for ephmeral node to ensure this 
session creates the entry.
    +                    
stateStorage.delete_node(ClusterUtils.nimbusPath(nimbusId));
    --- End diff --
    
    @harshach 
    This is for edge case for ephemeral node not deleted while session is 
closed.
    Please refer http://issues.apache.org/jira/browse/STORM-1941.
    
    I know it's odd but it is happening, and other article states this behavior.
    https://www.box.com/blog/a-gotcha-when-using-zookeeper-ephemeral-nodes/


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---

Reply via email to