You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@zookeeper.apache.org by "Benjamin Reed (JIRA)" <ji...@apache.org> on 2009/01/13 19:54:07 UTC

[jira] Commented: (ZOOKEEPER-272) getChildren can fail for large numbers of children

    [ https://issues.apache.org/jira/browse/ZOOKEEPER-272?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12663418#action_12663418 ] 

Benjamin Reed commented on ZOOKEEPER-272:
-----------------------------------------

I think there are two stages to fixing this problem. First we should make that line of code use BinaryInputArchive.maxBuffer, so that it can be configured. Then we should probably add a version of getChildren that takes and returns an offset, so that getChildren could be called multiple times to get all of the children.

> getChildren can fail for large numbers of children
> --------------------------------------------------
>
>                 Key: ZOOKEEPER-272
>                 URL: https://issues.apache.org/jira/browse/ZOOKEEPER-272
>             Project: Zookeeper
>          Issue Type: Bug
>            Reporter: Joshua Tuberville
>
> Zookeeper allows creation of an abritrary number of children, yet if the String array of children names exceeds 4,194,304 bytes a getChildren will fail because ClientCnxn$SendThread.readLength() throws an exception on line 490.  Mahadev Konar questioned this byte limit's need.  In any case consistency of create children, get children should exist.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.