Home | About | Sematext search-lucene.com search-hadoop.com
NEW: Monitor These Apps!
elasticsearch, apache solr, apache hbase, hadoop, redis, casssandra, amazon cloudwatch, mysql, memcached, apache kafka, apache zookeeper, apache storm, ubuntu, centOS, red hat, debian, puppet labs, java, senseiDB
 Search Hadoop and all its subprojects:

Switch to Threaded View
Zookeeper >> mail # user >> Which ZooKeeper errors can I recover from by retrying?


Copy link to this message
-
Re: Which ZooKeeper errors can I recover from by retrying?
Sounds right to me.

Patrick

On Thu, Jun 14, 2012 at 10:02 AM, David Nickerson
<[EMAIL PROTECTED]> wrote:
> Let's say I'm trying to create a non-sequential znode. The create method
> throws a KeeperException, which means it could be any of these:
>
> KeeperException
> APIErrorException
> AuthFailedException
> BadArgumentsException
> BadVersionException
> ConnectionLossException
> DataInconsistencyException
> InvalidACLException
> InvalidCallbackException
> MarshallingErrorException
> NoAuthException
> NoChildrenForEphemeralsException
> NodeExistsException
> NoNodeException
> NotEmptyException
> OperationTimeoutException
> RuntimeInconsistencyException
> SessionExpiredException
> SessionMovedException
> SystemErrorException
> UnimplementedException
>
> I'm trying to figure out which ones I can recover from by trying again
> until it works. It looks like I should try again if I get any
> of ConnectionLossException, OperationTimeoutException,
> or SessionMovedException. Am I correct in this? Are there any other
> exceptions that mean I should try again?
NEW: Monitor These Apps!
elasticsearch, apache solr, apache hbase, hadoop, redis, casssandra, amazon cloudwatch, mysql, memcached, apache kafka, apache zookeeper, apache storm, ubuntu, centOS, red hat, debian, puppet labs, java, senseiDB