fujian created ZOOKEEPER-4907:
---------------------------------

             Summary: Shouldn't throw "Len error" when server closing cause 
confuse
                 Key: ZOOKEEPER-4907
                 URL: https://issues.apache.org/jira/browse/ZOOKEEPER-4907
             Project: ZooKeeper
          Issue Type: Bug
          Components: server
            Reporter: fujian


We got the error:
 
{code:java}
2024-11-07 19:03:01,414 [myid:14] - WARN 
[nioEventLoopGroup-7-25:NettyServerCnxn@537] - Closing connection to 
/135.224.186.250:47051


java.io.IOException: Len error 794913900
at 
org.apache.zookeeper.server.NettyServerCnxn.receiveMessage(NettyServerCnxn.java:521)
at 
org.apache.zookeeper.server.NettyServerCnxn.processMessage(NettyServerCnxn.java:374)
at 
org.apache.zookeeper.server.NettyServerCnxnFactory$CnxnChannelHandler.channelRead(NettyServerCnxnFactory.java:357)
at 
io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:379)
at 
io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:365)
at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead
 {code}
It cause us very confused about it : if we write some big data into zookeeper. 
Thus. we found, in actual. it is just the log/issue when closing the server 
when reelecting the leader.
So I think we can do one tiny code change to avoid throw the error which 
causing confuse with big size's data to reduce trouble shooting effort.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to