Return-Path: X-Original-To: apmail-hadoop-common-issues-archive@minotaur.apache.org Delivered-To: apmail-hadoop-common-issues-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 76CC2E4ED for ; Fri, 18 Jan 2013 11:12:19 +0000 (UTC) Received: (qmail 89003 invoked by uid 500); 18 Jan 2013 11:12:16 -0000 Delivered-To: apmail-hadoop-common-issues-archive@hadoop.apache.org Received: (qmail 88530 invoked by uid 500); 18 Jan 2013 11:12:15 -0000 Mailing-List: contact common-issues-help@hadoop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: common-issues@hadoop.apache.org Delivered-To: mailing list common-issues@hadoop.apache.org Received: (qmail 88016 invoked by uid 99); 18 Jan 2013 11:12:13 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 18 Jan 2013 11:12:13 +0000 Date: Fri, 18 Jan 2013 11:12:13 +0000 (UTC) From: "Steve Loughran (JIRA)" To: common-issues@hadoop.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Created] (HADOOP-9226) IOUtils.CloseQuietly() to intercept RuntimeExceptions as well as IOExceptions MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 Steve Loughran created HADOOP-9226: -------------------------------------- Summary: IOUtils.CloseQuietly() to intercept RuntimeExceptions as well as IOExceptions Key: HADOOP-9226 URL: https://issues.apache.org/jira/browse/HADOOP-9226 Project: Hadoop Common Issue Type: Improvement Components: util Affects Versions: 1.1.1, 2.0.3-alpha Reporter: Steve Loughran Priority: Minor A stack trace of mine shows that call of {{IOException.closeQuietly()}} forwarded an NPE up from the JetS3t library's {{close()}} method. We *may* want to have the various {{CloseQuietly()}} method intercept and log such things too, on the assumption that the goal of those close operations is to downgrade all close-time exceptions into log events. If people agree that's what we want, I'll do the patch & test -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators For more information on JIRA, see: http://www.atlassian.com/software/jira