Details
Description
If I create 100k nodes on /misc then
CPPUNIT_ASSERT_EQUAL(0, zoo_get_children(zh2, "/misc", 0, &children));
for (int i = 0; i < children.count; i++)
around 47k or so through the loop the client fails with -4 (connection loss), the client timeout is 30 seconds. The server command port shows the following, so it looks like it's not the server but some issue with watcher reg on the c client?
phunt@valhalla:~$ echo stat | nc localhost 22181
Zookeeper version: 3.3.0--1, built on 07/22/2009 23:55 GMT
Clients:
/127.0.0.1:45729[1](queued=0,recved=100024,sent=0)
/127.0.0.1:50229[1](queued=0,recved=0,sent=0)
/127.0.0.1:45731[1](queued=0,recved=47116,sent=0)
/127.0.0.1:45730[1](queued=0,recved=47117,sent=1)
Latency min/avg/max: 0/196/1026
Received: 194257
Sent: 1
Outstanding: 0
Zxid: 0x186a4
Mode: standalone
Node count: 100005
729 is a separate client - the one that created the nodes originally.
731 and 730 are zh2/zh3 in the code.