Return-Path: X-Original-To: apmail-incubator-accumulo-user-archive@minotaur.apache.org Delivered-To: apmail-incubator-accumulo-user-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 6EAB3798C for ; Wed, 9 Nov 2011 15:39:04 +0000 (UTC) Received: (qmail 77833 invoked by uid 500); 9 Nov 2011 15:39:04 -0000 Delivered-To: apmail-incubator-accumulo-user-archive@incubator.apache.org Received: (qmail 77810 invoked by uid 500); 9 Nov 2011 15:39:04 -0000 Mailing-List: contact accumulo-user-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: accumulo-user@incubator.apache.org Delivered-To: mailing list accumulo-user@incubator.apache.org Received: (qmail 77799 invoked by uid 99); 9 Nov 2011 15:39:04 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 09 Nov 2011 15:39:04 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=5.0 tests=RCVD_IN_DNSWL_LOW,SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (athena.apache.org: local policy) Received: from [209.85.161.47] (HELO mail-fx0-f47.google.com) (209.85.161.47) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 09 Nov 2011 15:38:58 +0000 Received: by faat2 with SMTP id t2so1864034faa.6 for ; Wed, 09 Nov 2011 07:38:36 -0800 (PST) MIME-Version: 1.0 Received: by 10.223.77.71 with SMTP id f7mr5495994fak.33.1320853115826; Wed, 09 Nov 2011 07:38:35 -0800 (PST) Received: by 10.223.83.3 with HTTP; Wed, 9 Nov 2011 07:38:35 -0800 (PST) In-Reply-To: <4EBA98B0.6080905@digitalreasoning.com> References: <4EBA98B0.6080905@digitalreasoning.com> Date: Wed, 9 Nov 2011 10:38:35 -0500 Message-ID: Subject: Re: ZooSession infinite loop From: Keith Turner To: accumulo-user@incubator.apache.org Content-Type: text/plain; charset=ISO-8859-1 On Wed, Nov 9, 2011 at 10:13 AM, Keith Massey wrote: > A user of our recently filed a bug with us because our code hung forever > when she gave us an address for a zookeeper that was not running. I think > I've traced the problem into > org.apache.accumulo.core.zookeeper.ZooSession.connect(). If the connection > to the zookeeper fails it throws a ConnectException, which gets caught by > the catch (IOException) block, which logs the message and keeps trying > infinitely. It's definitely user error passing in an invalid zookeeper. But > shouldn't that method bail out after some time? > Thanks. > > Keith > Yeah, in this case it should not retry forever. I opened a ticket. https://issues.apache.org/jira/browse/ACCUMULO-131