You are viewing a plain text version of this content. The canonical link for it is here.
Posted to common-issues@hadoop.apache.org by "Steve Loughran (JIRA)" <ji...@apache.org> on 2017/12/14 19:52:02 UTC

[jira] [Commented] (HADOOP-15114) Add closeStreams(...) to IOUtils

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

Steve Loughran commented on HADOOP-15114:
-----------------------------------------

Add a test. Examples: 
*no streams,
* null stream (closeStreams(stream, null, stream))
* stream set to throw an IOE on close
* stream se to thrown an NPE on close


> Add closeStreams(...) to IOUtils
> --------------------------------
>
>                 Key: HADOOP-15114
>                 URL: https://issues.apache.org/jira/browse/HADOOP-15114
>             Project: Hadoop Common
>          Issue Type: Improvement
>            Reporter: Ajay Kumar
>            Assignee: Ajay Kumar
>         Attachments: HADOOP-15114.001.patch
>
>
> Add closeStreams(...) in IOUtils. Originally suggested by [Jason Lowe|https://issues.apache.org/jira/browse/HDFS-12881?focusedCommentId=16288320&page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#comment-16288320].



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

---------------------------------------------------------------------
To unsubscribe, e-mail: common-issues-unsubscribe@hadoop.apache.org
For additional commands, e-mail: common-issues-help@hadoop.apache.org