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

Harsh J commented on HADOOP-9226:
---------------------------------

Moved Steve's comment from release notes to here:

{quote}
That comment about {{cleanup}} made me go and look at {{IOUtils}} more closely 
-it turns out that it's Commons-IO that I'd mistakenly import. Their 
{{closeQuietly()}} doesn't handle exceptions other than IOE -but {{cleanup}} 
does. Marking as invalid.
{quote}
                
> 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

Reply via email to