We are running  zookeeper-3.4.5

byte[] bytes = new byte[1048576];
   zookeeper.create("/test_max", bytes);

-> connection loss exception

byte[] bytes = new byte[1048576-100];
   zookeeper.create("/test_max", bytes);
-> works
According to the documentation
http://zookeeper.apache.org/doc/r3.4.5/api/org/apache/zookeeper/ZooKeeper.html
The maximum allowable size of the data array is 1 MB (1,048,576 bytes).
Arrays larger than this will cause a KeeperExecption to be thrown.

Reply via email to