zookeeper-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Patrick Hunt <ph...@apache.org>
Subject Re: Which ZooKeeper errors can I recover from by retrying?
Date Fri, 15 Jun 2012 18:12:19 GMT
Sounds right to me.

Patrick

On Thu, Jun 14, 2012 at 10:02 AM, David Nickerson
<davidnickerson4mailinglists@gmail.com> 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?

Mime
View raw message