maoling created ZOOKEEPER-3892:
----------------------------------

             Summary: client cannot connect to server when we do a large scala 
benchmark test
                 Key: ZOOKEEPER-3892
                 URL: https://issues.apache.org/jira/browse/ZOOKEEPER-3892
             Project: ZooKeeper
          Issue Type: Bug
          Components: server
            Reporter: maoling


We have three servers(s1[follower], s2[Leader], s3[follower]), after doing a 
large scala benchmark test, the client cannot connect to server anymore.

No any resource panic(CPU, memory)

 
{code:java}
# connect to s2[Leader]

2020-07-17 17:44:56,767 [myid:127.0.0.1:2182] - WARN  
[main-SendThread(127.0.0.1:2182):ClientCnxn$SendThread@1278] - Session 0x0 for 
sever localhost/127.0.0.1:2182, Closing socket connection. Attempting reconnect 
except it is a SessionExpiredException.2020-07-17 17:44:56,767 
[myid:127.0.0.1:2182] - WARN  
[main-SendThread(127.0.0.1:2182):ClientCnxn$SendThread@1278] - Session 0x0 for 
sever localhost/127.0.0.1:2182, Closing socket connection. Attempting reconnect 
except it is a 
SessionExpiredException.org.apache.zookeeper.ClientCnxn$SessionTimeoutException:
 Client session timed out, have not heard from server in 30000ms for session id 
0x0 at 
org.apache.zookeeper.ClientCnxn$SendThread.run(ClientCnxn.java:1236)2020-07-17 
17:44:58,519 [myid:127.0.0.1:2182] - INFO  
[main-SendThread(127.0.0.1:2182):ClientCnxn$SendThread@1159] - Opening socket 
connection to server localhost/127.0.0.1:2182.2020-07-17 17:44:58,519 
[myid:127.0.0.1:2182] - INFO  
[main-SendThread(127.0.0.1:2182):ClientCnxn$SendThread@1161] - SASL config 
status: Will not attempt to authenticate using SASL (unknown error)2020-07-17 
17:44:58,519 [myid:127.0.0.1:2182] - INFO  
[main-SendThread(127.0.0.1:2182):ClientCnxn$SendThread@993] - Socket connection 
established, initiating session, client: /127.0.0.1:64219, server: 
localhost/127.0.0.1:21822020-07-17 17:45:28,522 [myid:127.0.0.1:2182] - WARN  
[main-SendThread(127.0.0.1:2182):ClientCnxn$SendThread@1235] - Client session 
timed out, have not heard from server in 30003ms for session id 0x02020-07-17 
17:45:28,522 [myid:127.0.0.1:2182] - WARN  
[main-SendThread(127.0.0.1:2182):ClientCnxn$SendThread@1278] - Session 0x0 for 
sever localhost/127.0.0.1:2182, Closing socket connection. Attempting reconnect 
except it is a 
SessionExpiredException.org.apache.zookeeper.ClientCnxn$SessionTimeoutException:
 Client session timed out, have not heard from server in 30003ms for session id 
0x0 at 
org.apache.zookeeper.ClientCnxn$SendThread.run(ClientCnxn.java:1236)2020-07-17 
17:45:30,115 [myid:127.0.0.1:2182] - INFO  
[main-SendThread(127.0.0.1:2182):ClientCnxn$SendThread@1159] - Opening socket 
connection to server localhost/127.0.0.1:2182.2020-07-17 17:45:30,115 
[myid:127.0.0.1:2182] - INFO  
[main-SendThread(127.0.0.1:2182):ClientCnxn$SendThread@1161] - SASL config 
status: Will not attempt to authenticate using SASL (unknown error)2020-07-17 
17:45:30,116 [myid:127.0.0.1:2182] - INFO  
[main-SendThread(127.0.0.1:2182):ClientCnxn$SendThread@993] - Socket connection 
established, initiating session, client: /127.0.0.1:64223, server: 
localhost/127.0.0.1:2182
[zk: 127.0.0.1:2182(CONNECTING) 0]

./zkServer.sh status
JMX enabled by default
Using config: /data/software/zookeeper/zookeeper-two/bin/../conf/zoo.cfg
Mode: leader
{code}
However, we cannot connect to s2,s3, but we can connect to s1 and create znodes
{code:java}
[zk: 127.0.0.1:2181(CONNECTED) 0] getAllChildrenNumber /
1645338
[zk: 127.0.0.1:2181(CONNECTED) 1] create /test-666
Created /test-666
[zk: 127.0.0.1:2181(CONNECTED) 2] create /test-777 "777"
Created /test-777
[zk: 127.0.0.1:2181(CONNECTED) 3] get /test-777
777
[zk: 127.0.0.1:2181(CONNECTED) 4] create /test-888 "88"
Created /test-888
[zk: 127.0.0.1:2181(CONNECTED) 5] get /test-888
88
{code}
Attach the logs for debugging

 

 

 



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to