libzookeeper icon indicating copy to clipboard operation
libzookeeper copied to clipboard

function get alway throw exception 'connection loss'

Open xiangbohua opened this issue 6 years ago • 1 comments

i got a zookeeper cluster and when i call function 'get' after i connected to the cluster the function throw connection loss. so i can't get anything from the cluster. what's worry with my code?

xiangbohua avatar Feb 15 '19 03:02 xiangbohua

Would you mind providing sample code to detail this issue? FYI, connect() does not connect to the cluster at once as you call it. So you can also check if the endpoint info (addr. and port) is correct.

Timandes avatar Feb 16 '19 08:02 Timandes