created ZOOKEEPER-2615:

             Summary: Zookeeper server holds onto dead/expired session ids in 
the watch data structures
                 Key: ZOOKEEPER-2615
             Project: ZooKeeper
          Issue Type: Bug
          Components: server
    Affects Versions: 3.4.6

The same issue ( still can 
be found even with zookeeper 3.4.6.

this issue cause our production zookeeper cluster leak about 1 million watchs, 
after restart the server one by one, the watch count decrease to only about 

I can reproduce the issue on my mac,here it is:

pguodeMacBook-Air:bin pguo$ echo srvr | nc localhost 6181
Zookeeper version: 3.4.6-1569965, built on 02/20/2014 09:09 GMT
Latency min/avg/max: 0/1156/128513
Received: 539
Sent: 531
Connections: 1
Outstanding: 0
Zxid: 0x100000037
Mode: follower
Node count: 5
pguodeMacBook-Air:bin pguo$ echo cons | nc localhost 6181

pguodeMacBook-Air:bin pguo$ echo wchp | nc localhost 6181

as above 4-letter's report shows,       0x357be48e4d90007 and 0x357be48e4d90009 
are leaked after the two sessions expired 

This message was sent by Atlassian JIRA

Reply via email to