[ https://issues.apache.org/jira/browse/ZOOKEEPER-2517?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15788480#comment-15788480 ]
Hudson commented on ZOOKEEPER-2517: ----------------------------------- SUCCESS: Integrated in Jenkins build ZooKeeper-trunk #3217 (See [https://builds.apache.org/job/ZooKeeper-trunk/3217/]) ZOOKEEPER-2517: jute.maxbuffer is ignored (hanm: rev de5c0e9abeb87721f4157662210dfcd38a7c15ea) * (edit) src/java/main/org/apache/zookeeper/common/ZKConfig.java * (edit) src/java/test/org/apache/zookeeper/client/ZKClientConfigTest.java * (add) src/java/test/org/apache/zookeeper/ClientCnxnSocketTest.java * (edit) src/java/main/org/apache/zookeeper/ClientCnxnSocket.java * (edit) src/java/main/org/apache/zookeeper/ClientCnxnSocketNetty.java > jute.maxbuffer is ignored > ------------------------- > > Key: ZOOKEEPER-2517 > URL: https://issues.apache.org/jira/browse/ZOOKEEPER-2517 > Project: ZooKeeper > Issue Type: Bug > Affects Versions: 3.5.2 > Reporter: Benjamin Jaton > Assignee: Arshad Mohammad > Priority: Blocker > Fix For: 3.5.3, 3.6.0 > > Attachments: ZOOKEEPER-2517-01.patch, ZOOKEEPER-2517-02.patch, > ZOOKEEPER-2517-03.patch, ZOOKEEPER-2517-04.patch, ZOOKEEPER-2517.patch > > > In ClientCnxnSocket.java the parsing of the system property is erroneous: > {code}packetLen = Integer.getInteger( > clientConfig.getProperty(ZKConfig.JUTE_MAXBUFFER), > ZKClientConfig.CLIENT_MAX_PACKET_LENGTH_DEFAULT > );{code} > Javadoc of Integer.getInteger states "The first argument is treated as the > name of a system property", whereas here the value of the property is passed. > Instead I believe the author meant to write something like: > {code}packetLen = Integer.parseInt( > clientConfig.getProperty( > ZKConfig.JUTE_MAXBUFFER, > String.valueOf(ZKClientConfig.CLIENT_MAX_PACKET_LENGTH_DEFAULT) > ) > );{code} -- This message was sent by Atlassian JIRA (v6.3.4#6332)