Return-Path: X-Original-To: apmail-hbase-issues-archive@www.apache.org Delivered-To: apmail-hbase-issues-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 93D5D18DA1 for ; Sun, 14 Feb 2016 20:11:18 +0000 (UTC) Received: (qmail 22619 invoked by uid 500); 14 Feb 2016 20:11:18 -0000 Delivered-To: apmail-hbase-issues-archive@hbase.apache.org Received: (qmail 22561 invoked by uid 500); 14 Feb 2016 20:11:18 -0000 Mailing-List: contact issues-help@hbase.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Delivered-To: mailing list issues@hbase.apache.org Received: (qmail 22549 invoked by uid 99); 14 Feb 2016 20:11:18 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 14 Feb 2016 20:11:18 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id 305AC2C1F58 for ; Sun, 14 Feb 2016 20:11:18 +0000 (UTC) Date: Sun, 14 Feb 2016 20:11:18 +0000 (UTC) From: "Sean Busbey (JIRA)" To: issues@hbase.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (HBASE-15266) add precommit check for "catch Throwable" MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/HBASE-15266?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15146712#comment-15146712 ] Sean Busbey commented on HBASE-15266: ------------------------------------- Exceptions to a rule are likely to exist, and the judgement of our committers should be able to handle identifying appropriate uses and ensuring that we're handling things correctly (for example making sure we're not discarding Errors). > add precommit check for "catch Throwable" > ----------------------------------------- > > Key: HBASE-15266 > URL: https://issues.apache.org/jira/browse/HBASE-15266 > Project: HBase > Issue Type: New Feature > Components: test > Reporter: Sean Busbey > Priority: Minor > > Catching Throwable is usually incorrect because it gets all of the Error derived problems, like ThreadDeath, OutOfMemoryError, VM malfunctions, linker problems, etc. > I was surprised to see findbugs did not flag catching throwable in the patches on HBASE-9393. We should add a precommit check that looks expressly for it, in our "hbase antipatterns" test plugin. -- This message was sent by Atlassian JIRA (v6.3.4#6332)