[ 
https://issues.apache.org/jira/browse/ZOOKEEPER-1755?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13899390#comment-13899390
 ] 

Raul Gutierrez Segales commented on ZOOKEEPER-1755:
---------------------------------------------------

Nice patch [~rakeshr].

Trivial nits:

{noformat}
+        LOG.info("Create " + count + " sessions and its ephemeral nodes");
...
+                    LOG.error("Received exception while dumpEphemerals!", e);
...
+        LOG.debug("Killing " + count
+                + " ZooKeeper client sessions and its ephemeral nodes");
{noformat}

extrapolation instead of concatenation.

> Concurrent operations of four letter 'dump' ephemeral command and killSession 
> causing NPE
> -----------------------------------------------------------------------------------------
>
>                 Key: ZOOKEEPER-1755
>                 URL: https://issues.apache.org/jira/browse/ZOOKEEPER-1755
>             Project: ZooKeeper
>          Issue Type: Bug
>          Components: server
>    Affects Versions: 3.4.5
>            Reporter: Rakesh R
>            Assignee: Rakesh R
>             Fix For: 3.4.7, 3.5.0
>
>         Attachments: 0001-ZOOKEEPER-1755-branch-3_4.patch, 
> 0001-ZOOKEEPER-1755-trunk-version.patch
>
>
> Potential problem occurs, when executing four letter 'dump' command and at 
> the meantime zkserver has triggered session closure and removing the related 
> information from the DataTree.
> Please see the exception:
> {code}
> java.lang.NullPointerException
>       at 
> org.apache.zookeeper.server.DataTree.dumpEphemerals(DataTree.java:1278)
>       at org.apache.zookeeper.server.DataTreeTest$1.run(DataTreeTest.java:82)
> {code}



--
This message was sent by Atlassian JIRA
(v6.1.5#6160)

Reply via email to