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

Renukaprasad C commented on HADOOP-17588:
-----------------------------------------

This is very random case, whih happened once in our production environment. 
Added synchronization to avoid concurrent access. Existing UT covers normal 
flow, couldnt reproduce concurrent issue with UT, so no new UTs added.

> CryptoInputStream#close() should be syncronized
> -----------------------------------------------
>
>                 Key: HADOOP-17588
>                 URL: https://issues.apache.org/jira/browse/HADOOP-17588
>             Project: Hadoop Common
>          Issue Type: Bug
>            Reporter: Renukaprasad C
>            Assignee: Renukaprasad C
>            Priority: Major
>         Attachments: HADOOP-17588.001.patch, image-2021-03-13-23-56-18-865.png
>
>
> org.apache.hadoop.crypto.CryptoInputStream.close() - when 2 threads try to 
> close the stream second thread, fails with error.
> This operation should be synchronized to avoid multiple threads to perform 
> the close operation concurrently.
>  !image-2021-03-13-23-56-18-865.png|thumbnail! 



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

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

Reply via email to