Return-Path: X-Original-To: apmail-zookeeper-user-archive@www.apache.org Delivered-To: apmail-zookeeper-user-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 6A9679588 for ; Thu, 14 Jun 2012 17:02:41 +0000 (UTC) Received: (qmail 28081 invoked by uid 500); 14 Jun 2012 17:02:40 -0000 Delivered-To: apmail-zookeeper-user-archive@zookeeper.apache.org Received: (qmail 27970 invoked by uid 500); 14 Jun 2012 17:02:40 -0000 Mailing-List: contact user-help@zookeeper.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@zookeeper.apache.org Delivered-To: mailing list user@zookeeper.apache.org Received: (qmail 27961 invoked by uid 99); 14 Jun 2012 17:02:40 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 14 Jun 2012 17:02:40 +0000 X-ASF-Spam-Status: No, hits=2.6 required=5.0 tests=FSL_RCVD_USER,HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS,TRACKER_ID X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of davidnickerson4mailinglists@gmail.com designates 209.85.213.42 as permitted sender) Received: from [209.85.213.42] (HELO mail-yw0-f42.google.com) (209.85.213.42) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 14 Jun 2012 17:02:34 +0000 Received: by yhfq11 with SMTP id q11so1531119yhf.15 for ; Thu, 14 Jun 2012 10:02:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type; bh=n/iXHe8riIL4wKR9+MeJK5tZzIedNVPJZhthe931fLQ=; b=gBaUrWhfIM4s6MiN/BdYyEAljUQ3HRanlUIM/o8zsaRgpwXvewYpbjoOKHw7QhouG+ cu74Be/E7wEQgN5Of3PwWNbkvrw64/vI3meo6+u8teH5DeoVAEE6zKxG8x1Q/Ru4sW1J Zwm3LDeRh2lDoXqUm9QeiLREMJzWFRJg0DeFk78QjPBh0OMBPjylZQilJybOQOD5RANR o7eODceRUO3IuXDJDW8Xvq9093JvamFPbFbMFL61hN8jVPZbSHD+DuX8ckf/YyOHniBI aj1tj5KKTU9otJqnb++WL0c2k4UIM3aSYJqVqNSEgMb8dTa+ELNsIf/htq/9DEsUZUOb ajkQ== MIME-Version: 1.0 Received: by 10.50.179.74 with SMTP id de10mr1328676igc.61.1339693333349; Thu, 14 Jun 2012 10:02:13 -0700 (PDT) Received: by 10.64.33.165 with HTTP; Thu, 14 Jun 2012 10:02:13 -0700 (PDT) Date: Thu, 14 Jun 2012 13:02:13 -0400 Message-ID: Subject: Which ZooKeeper errors can I recover from by retrying? From: David Nickerson To: ZooKeeper mailing list Content-Type: multipart/alternative; boundary=14dae934041b3e065504c271a9c1 X-Virus-Checked: Checked by ClamAV on apache.org --14dae934041b3e065504c271a9c1 Content-Type: text/plain; charset=ISO-8859-1 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? --14dae934041b3e065504c271a9c1--