Home | About | Sematext search-lucene.com search-hadoop.com
 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?
Patrick Hunt 2012-06-15, 18:12
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?