zookeeper-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From kcl66 <wmng...@gmail.com>
Subject Java getChildren() vs C zoo_get_children()
Date Fri, 10 Jan 2014 15:12:18 GMT
In Java a synchronous request like getChildren() will get a
ConnectionLossException if the Zookeeper server has just gone down &
connection with another server has yet to be established.

Anyone knows the behavior of corresponding C functions (zoo_get_children(),
for example) if the same thing happens? zoo_get_children() returns a number
error codes but none seem to refer to a connection loss. 

* ZOK operation completed successfully
 * ZNONODE the node does not exist.
 * ZNOAUTH the client does not have permission.
 * ZBADARGUMENTS - invalid input parameters
 * ZINVALIDSTATE - zhandle state is either ZOO_SESSION_EXPIRED_STATE or
ZOO_AUTH_FAILED_STATE
 * ZMARSHALLINGERROR - failed to marshall a request; possibly, out of memory

Thanks!
kc




--
View this message in context: http://zookeeper-user.578899.n2.nabble.com/Java-getChildren-vs-C-zoo-get-children-tp7579476.html
Sent from the zookeeper-user mailing list archive at Nabble.com.

Mime
View raw message