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 "Renukaprasad C (Jira)" <ji...@apache.org> on 2021/03/14 07:13:00 UTC

[jira] [Comment Edited] (HADOOP-17588) CryptoInputStream#close() should be syncronized

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

Renukaprasad C edited comment on HADOOP-17588 at 3/14/21, 7:12 AM:
-------------------------------------------------------------------

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.

[~brahmareddy] Can you plz review when you find time?


was (Author: prasad-acit):
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: common-issues-unsubscribe@hadoop.apache.org
For additional commands, e-mail: common-issues-help@hadoop.apache.org