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

Hudson commented on HADOOP-14346:
---------------------------------

SUCCESS: Integrated in Jenkins build Hadoop-trunk-Commit #11639 (See 
[https://builds.apache.org/job/Hadoop-trunk-Commit/11639/])
HADOOP-14346. CryptoOutputStream throws IOException if stream is closed. 
(stevel: rev 61cda39e4eec00678706d96e90026455ecfc0a90)
* (edit) 
hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/crypto/CryptoOutputStream.java


> CryptoOutputStream throws IOException on flush() if stream is closed
> --------------------------------------------------------------------
>
>                 Key: HADOOP-14346
>                 URL: https://issues.apache.org/jira/browse/HADOOP-14346
>             Project: Hadoop Common
>          Issue Type: Bug
>    Affects Versions: 2.7.3
>            Reporter: Pierre Lacave
>            Assignee: Pierre Lacave
>             Fix For: 2.8.1
>
>         Attachments: CryptoOutputStream.flush-no-throw-on-closed.patch, 
> HADOOP-14346-1.patch
>
>
> With Druid and Hadoop 2.7.3 I see that calls to flush() on a closed 
> CryptoOutputStream throws IOException.
> Although flushing closed stream is dodgy, the culprit is actually 
> CryptoOutputStream, according to the java documentation it look actually 
> authorised.
> The OutputStream java doc 
> (http://docs.oracle.com/javase/8/docs/api/java/io/OutputStream.html#flush()) 
> shows that flush should behave like close(), which allows being called on a 
> closed stream without exception (as opposed to write() and others which 
> clearly says should throw an exception)



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to