[ https://issues.apache.org/jira/browse/ZOOKEEPER-107?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13426129#comment-13426129 ]
Patrick Hunt commented on ZOOKEEPER-107: ---------------------------------------- Flavio, here's what I think is happening. listFiles returns null when the File doesn't exist. Also check isFile - it returns true iif the File is a file and it exists. So in this case the file existed, then deleted out from under the thread, which called isFile which returned false, so then it tried to listFiles which returns null because there is no File. See my patch in ZOOKEEPER-1522 which addresses this issue. > Allow dynamic changes to server cluster membership > -------------------------------------------------- > > Key: ZOOKEEPER-107 > URL: https://issues.apache.org/jira/browse/ZOOKEEPER-107 > Project: ZooKeeper > Issue Type: Improvement > Components: server > Reporter: Patrick Hunt > Assignee: Alexander Shraer > Fix For: 3.5.0 > > Attachments: SimpleAddition.rtf, ZOOKEEPER-107-1-Mar.patch, > ZOOKEEPER-107-20-July.patch, ZOOKEEPER-107-21-July.patch, > ZOOKEEPER-107-22-Apr.patch, ZOOKEEPER-107-28-Feb.patch, > ZOOKEEPER-107-28-Feb.patch, ZOOKEEPER-107-29-Feb.patch, > zkreconfig-usenixatc-final.pdf, zoo_replicated1.cfg, zoo_replicated1.members, > zookeeper-3.4.0.jar, zookeeper-dev-fatjar.jar, > zookeeper-reconfig-sep11.patch, zookeeper-reconfig-sep12.patch > > > Currently cluster membership is statically defined, adding/removing hosts > to/from the server cluster dynamically needs to be supported. -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa For more information on JIRA, see: http://www.atlassian.com/software/jira