[ https://issues.apache.org/jira/browse/ZOOKEEPER-555?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12766154#action_12766154 ]
Patrick Hunt commented on ZOOKEEPER-555: ---------------------------------------- That sounds reasonable. Alternately, might you use the sequence numbers themselves to ascertain the "version"? I was thinking something like: you have a child list with seq numbers version = x,y where x is count, y is last seq number 1 2 3 => version is 3,3 znode 2 drops 1 3 => version is 2,3 a new znode is added 1 3 4 => version is 3,4 so the server would see 3,3 2,3 3,3 2,3 in your example x,y where x can only decrease as time increases unless y increases. therefore the second 3,3 2,3 would be ignored (ie old version) > Add stat information to GetChildrenResponse > ------------------------------------------- > > Key: ZOOKEEPER-555 > URL: https://issues.apache.org/jira/browse/ZOOKEEPER-555 > Project: Zookeeper > Issue Type: Improvement > Components: c client, contrib-bindings, java client, server > Affects Versions: 3.3.0 > Reporter: Árni Már Jónsson > Assignee: Árni Már Jónsson > Priority: Minor > Fix For: 3.3.0 > > Attachments: getchildren_stat.patch > > > GetChildren() is the only non-create/delete API which does not include the > node stat information. I propose that the definition of GetChildren() should > be: > class GetChildrenResponse { > vector<ustring> children; > org.apache.zookeeper.data.Stat stat; > } > There is a trivial fix to the server (FinalRequestProcessor.java): rsp = new > GetChildrenResponse(children, stat); > And something similar to the client library. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.