707 void readLength() throws IOException {
708 int len = incomingBuffer.getInt();
709 if (len < 0 || len >= packetLen) {
710 throw new IOException("Packet len" + len + " is out of range!");
711 }
712 incomingBuffer = ByteBuffer.allocate(len);
713 }
因为某些误操作,导致znode节点上的数据太大,超过长度,这时候要ls或者rmr就会报错大概像下图:Packet len4807928 is out of range在外网有这样的文章:https://stackoverflow.com/questions/10249579/zookeeper-cli-failing-ioexception-packet-len12