[
https://issues.apache.org/jira/browse/ZOOKEEPER-2260?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15056777#comment-15056777
]
ASF GitHub Bot commented on ZOOKEEPER-2260:
-------------------------------------------
GitHub user mprimi opened a pull request:
https://github.com/apache/zookeeper/pull/50
ZOOKEEPER-2260: Paginated getChildren call
Motivation
- Allow listing children that normally would exceed the buffer limit
- Get stat for children in the same call as the list
Modifications
- Implemetation of DataTree#getPaginatedChildren
- Added the call to the zk client
- Handle the call in the FinalRequestProcessor
- Added PathWithStat, GetChildrenPaginatedRequest and
GetChildrenPaginatedResponse to the protos
- Added tests for pagination and watch
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/mprimi/zookeeper ZOOKEEPER-2260
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/zookeeper/pull/50.patch
To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:
This closes #50
----
commit cfc4e2f9ea8582456e8de120b874301cfd7196b9
Author: Marco Primi <[email protected]>
Date: 2015-12-14T21:41:28Z
ZOOKEEPER-2260: Paginated getChildren call
Motivation
Being able to get children with pagination.
Two main benefits:
- Allow listing children that normally would exceed the buffer limit
- Get stat for children in the same call as the list
Modifications
- Implemetation of DataTree#getPaginatedChildren
- Added the call to the zk client
- Handle the call in the FinalRequestProcessor
- Added PathWithStat, GetChildrenPaginatedRequest and
GetChildrenPaginatedResponse to the protos
- Added tests for pagination and watch
----
> Paginated getChildren call
> --------------------------
>
> Key: ZOOKEEPER-2260
> URL: https://issues.apache.org/jira/browse/ZOOKEEPER-2260
> Project: ZooKeeper
> Issue Type: New Feature
> Affects Versions: 3.4.5, 3.4.6, 3.5.0, 4.0.0
> Reporter: Marco P.
> Priority: Minor
> Labels: api, features
> Fix For: 4.0.0
>
> Attachments: ZOOKEEPER-2260.patch
>
>
> Add pagination support to the getChildren() call, allowing clients to iterate
> over children N at the time.
> Motivations for this include:
> - Getting out of a situation where so many children were created that
> listing them exceeded the network buffer sizes (making it impossible to
> recover by deleting)[1]
> - More efficient traversal of nodes with large number of children [2]
> I do have a patch (for 3.4.6) we've been using successfully for a while, but
> I suspect much more work is needed for this to be accepted.
> [1] https://issues.apache.org/jira/browse/ZOOKEEPER-272
> [2] https://issues.apache.org/jira/browse/ZOOKEEPER-282
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)