hadoop-common-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Colin Patrick McCabe (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (HADOOP-9226) IOUtils.CloseQuietly() to intercept RuntimeExceptions as well as IOExceptions
Date Fri, 18 Jan 2013 19:56:12 GMT

    [ https://issues.apache.org/jira/browse/HADOOP-9226?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13557542#comment-13557542

Colin Patrick McCabe commented on HADOOP-9226:

If we do decide to do this, we should change {{cleanup}} as well.
> 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

View raw message