Return-Path: X-Original-To: apmail-curator-dev-archive@minotaur.apache.org Delivered-To: apmail-curator-dev-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id E40E117FEA for ; Sat, 20 Jun 2015 15:28:37 +0000 (UTC) Received: (qmail 62212 invoked by uid 500); 20 Jun 2015 15:28:37 -0000 Delivered-To: apmail-curator-dev-archive@curator.apache.org Received: (qmail 62159 invoked by uid 500); 20 Jun 2015 15:28:37 -0000 Mailing-List: contact dev-help@curator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@curator.apache.org Delivered-To: mailing list dev@curator.apache.org Received: (qmail 62141 invoked by uid 99); 20 Jun 2015 15:28:37 -0000 Received: from git1-us-west.apache.org (HELO git1-us-west.apache.org) (140.211.11.23) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 20 Jun 2015 15:28:37 +0000 Received: by git1-us-west.apache.org (ASF Mail Server at git1-us-west.apache.org, from userid 33) id 67747E35E2; Sat, 20 Jun 2015 15:28:37 +0000 (UTC) From: madrob To: dev@curator.apache.org Reply-To: dev@curator.apache.org References: In-Reply-To: Subject: [GitHub] curator pull request: CURATOR-219 Catch Exceptions, not Throwables Content-Type: text/plain Message-Id: <20150620152837.67747E35E2@git1-us-west.apache.org> Date: Sat, 20 Jun 2015 15:28:37 +0000 (UTC) Github user madrob commented on a diff in the pull request: https://github.com/apache/curator/pull/78#discussion_r32885316 --- Diff: curator-client/src/main/java/org/apache/curator/ensemble/exhibitor/ExhibitorEnsembleProvider.java --- @@ -301,7 +301,7 @@ else if ( port != thePort ) values.putAll(decodeExhibitorList(encoded)); done = true; } - catch ( Throwable e ) + catch ( Exception e ) --- End diff -- NPE still gets caught. If OOM is thrown, does it really make sense to retry? That's usually a pretty drastic condition and very often the JVM is not actually in a recoverable state. The OOM can be thrown because of a different thread going wonky, and we have no way to clean up the resources it was using. --- If your project is set up for it, you can reply to this email and have your reply appear on GitHub as well. If your project does not have this feature enabled and wishes so, or if the feature is enabled but not working, please contact infrastructure at infrastructure@apache.org or file a JIRA ticket with INFRA. ---