Árni Már Jónsson updated ZOOKEEPER-555:

    Attachment: ZOOKEEPER-555.patch

A patch which adds a second getChildren() function, which in addition to 
children, returns the parent stat.

The main additions are these:

 * There is a new C callback, strings_stat_completion_t
 * There are 4 new C API calls: zoo_aget_children2(), zoo_awget_children(), 
zoo_get_children2(), zoo_wget_children2()
 * The C client now supports the "ls2" command
 * The C test client has a new test, testGetChildren2()
 * There is a new Java API callback: Children2Callback()
 * There are 2 new message: GetChildren2Request(), GetChildren2Response()
 * There is a new struct> StringsAndStat, which is the unit of data transfer in 
the C/Java API.
 * There are 4 new Java API calls
 * There are new tests, and test modifications to the Java unit-tests. The 
modifications are corresponding calls to getChildren2() alongside a 
getChildren() call, the return values of which are then compared. There is a 
new class under the AsyncOps tests, which is mostly equivalent to the 
getChildren()-calling class.  And there is a new test> GetChildren2Test.java, 
which is very similar to the exists() test.

> 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, ZOOKEEPER-555.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.

Reply via email to