I have 3 zookeepers running and while creating Zookeeper object I specify csv of all 3 hosts.
For eg. \ZooKeeper("host1:port1,host2:port2,host3:port2", null, $timeout);
If I kill one zookeeper node I get 'connection loss' error sometimes from getChildren.
If I kill 2 zookeeper nodes I am always getting 'connection loss' error.
Does getchildren tries to connect to all zookeeper nodes ?
Can someone explain what this fuction internally does ?