[ https://issues.apache.org/jira/browse/ZOOKEEPER-1312?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13161095#comment-13161095 ]
Patrick Hunt commented on ZOOKEEPER-1312: ----------------------------------------- If the clients themselves registered with ZK using ephemeral nodes, and assuming the client's don't change state very often, then the janitor could use notifications to trigger updates to the info files (also batching updates as Ted suggests). The clients could even let the janitor know whether they cleaned up gracefully or not through zk. Downside is you'd need more than one janitor if you wanted to elim that as a spof. Depending on the lifetime of the leases and the number of clients involved you would also want to think about optimistic locking contention on the comprehensive file. (ie have more than one). > Add a "getChildrenWithStat" operation > ------------------------------------- > > Key: ZOOKEEPER-1312 > URL: https://issues.apache.org/jira/browse/ZOOKEEPER-1312 > Project: ZooKeeper > Issue Type: New Feature > Reporter: Daniel Lord > Labels: newbie > > It would be extremely useful to be able to have a "getChildrenWithStat" > method. This method would behave exactly the same as getChildren but in > addition to returning the list of all child znode names it would also return > a Stat for each child. I'm sure there are quite a few use cases for this but > it could save a lot of extra reads for my application. -- 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