You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@zookeeper.apache.org by "Rakesh R (JIRA)" <ji...@apache.org> on 2013/09/07 20:26:54 UTC

[jira] [Updated] (ZOOKEEPER-1755) Concurrent operations of four letter 'dump' ephemeral command and killSession causing NPE

     [ https://issues.apache.org/jira/browse/ZOOKEEPER-1755?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Rakesh R updated ZOOKEEPER-1755:
--------------------------------

    Attachment: 0001-ZOOKEEPER-1755-trunk-version.patch

I've just added necessary null checks. In the trunk version, I've moved existing DataTreeTest.java to the same package of DataTree.java. This is done for unit testing DataTree#killSession method, its visbility is package (the default)
                
> 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
>    Affects Versions: 3.5.0, 3.4.5
>            Reporter: Rakesh R
>            Assignee: Rakesh R
>         Attachments: 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 is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira