Description
In ClientCnxnSocket.java the parsing of the system property is erroneous:
packetLen = Integer.getInteger(
clientConfig.getProperty(ZKConfig.JUTE_MAXBUFFER),
ZKClientConfig.CLIENT_MAX_PACKET_LENGTH_DEFAULT
);
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:
packetLen = Integer.parseInt( clientConfig.getProperty( ZKConfig.JUTE_MAXBUFFER, String.valueOf(ZKClientConfig.CLIENT_MAX_PACKET_LENGTH_DEFAULT) ) );
Attachments
Attachments
Issue Links
- is broken by
-
ZOOKEEPER-2139 Support multiple ZooKeeper client, with different configurations, in a single JVM
- Closed
- links to