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

Yi Liu edited comment on HADOOP-11710 at 3/13/15 1:20 AM:
----------------------------------------------------------

Sean, don't move {{closed = true;}}. 
{{super.close();}} will invoke flush to flush the remaining data in the buffer, 
if we set *closed* to true before invoking {{super.close()}}, we will get 
error. 
I think the test failure should be related to this.


was (Author: hitliuyi):
Sean, don't move {{closed = true;}}. {{super.close();}} will invoke flush to 
flush the remaining data in the buffer, if we set *closed* to true before 
invoking {{super.close()}}, we will get error. 
I think the test failure should be related to this.

> Make CryptoOutputStream behave like DFSOutputStream wrt synchronization
> -----------------------------------------------------------------------
>
>                 Key: HADOOP-11710
>                 URL: https://issues.apache.org/jira/browse/HADOOP-11710
>             Project: Hadoop Common
>          Issue Type: Sub-task
>          Components: fs
>    Affects Versions: 2.6.0
>            Reporter: Sean Busbey
>            Assignee: Sean Busbey
>            Priority: Critical
>         Attachments: HADOOP-11710.1.patch.txt, HADOOP-11710.2.patch.txt
>
>
> per discussion on parent, as an intermediate solution make CryptoOutputStream 
> behave like DFSOutputStream



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to