tian created ZOOKEEPER-4412:
-------------------------------
Summary: client block too long before session timeout
Key: ZOOKEEPER-4412
URL: https://issues.apache.org/jira/browse/ZOOKEEPER-4412
Project: ZooKeeper
Issue Type: Bug
Components: java client
Affects Versions: 3.4.14
Reporter: tian
set Negotiated session timeout: 40000
when switch failure, the client did not send suspend event to state listner
after 180000 ms
{code:java}
// code placeholder
[10.10.10.2][my-app][2021-11-05 13:55:38.701][
WARN][????][16.195.152:2181)][o.a.z.ClientCnxn ] :
[][][]Client session timed out, have not heard from server in 204988ms for
sessionid 0x405005d85480c3d
[10.10.10.2][my-app][2021-10-30 15:55:39.275][
WARN][????][16.195.152:218)][o.a.z.ClientCnxn ] :
[][][]Unable to reconnect to ZooKeeper service, session 0x405005d85480c3d has
expired
[10.10.10.2][my-app][2021-10-30 15:55:39.275][
WARN][????][ain-EventThread][o.a.c.ConnectionState ] :
[][][]Session expired event received{code}
why after {color:#FF0000}204988ms {color:#172b4d}this client found client
session timeout ? socket read timeout = 2/3 * sessiont time out , it blocked
too long to discover network failure. what may cause this scene?{color}{color}
--
This message was sent by Atlassian Jira
(v8.20.1#820001)