You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@zookeeper.apache.org by "Dave Latham (JIRA)" <ji...@apache.org> on 2012/11/14 01:28:12 UTC

[jira] [Commented] (ZOOKEEPER-1295) Documentation for jute.maxbuffer is not correct in ZooKeeper Administrator's Guide

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

Dave Latham commented on ZOOKEEPER-1295:
----------------------------------------

If this value is different on client and server, is it not the case that "the system property must be set on all servers and clients otherwise problems will arise" as the document states?  I'd love to be able to change this without downtime to prevent occurrences of ZOOKEEPER-706 or HBASE-4246
                
> Documentation for jute.maxbuffer is not correct in ZooKeeper Administrator's Guide
> ----------------------------------------------------------------------------------
>
>                 Key: ZOOKEEPER-1295
>                 URL: https://issues.apache.org/jira/browse/ZOOKEEPER-1295
>             Project: ZooKeeper
>          Issue Type: Bug
>          Components: documentation
>    Affects Versions: 3.3.2
>            Reporter: Daniel Lord
>              Labels: newbie
>
> The jute maxbuffer size is documented as being defaulted to 1 megabyte in the administrators guide.  I believe that this is true server side but it is not true client side.  On the client side the default is (at least in 3.3.2) this:
> packetLen = Integer.getInteger("jute.maxbuffer", 4096 * 1024);
> On the server side the documentation looks to be correct:
>     private static int determineMaxBuffer() {
>         String maxBufferString = System.getProperty("jute.maxbuffer");
>         try {
>             return Integer.parseInt(maxBufferString);
>         } catch(Exception e) {
>             return 0xfffff;
>         }
>         
>     }
> The documentation states this:
> jute.maxbuffer:
> (Java system property: jute.maxbuffer)
> This option can only be set as a Java system property. There is no zookeeper prefix on it. It specifies the maximum size of the data that can be stored in a znode. The default is 0xfffff, or just under 1M. If this option is changed, the system property must be set on all servers and clients otherwise problems will arise. This is really a sanity check. ZooKeeper is designed to store data on the order of kilobytes in size.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira