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 "Kuhu Shukla (JIRA)" <ji...@apache.org> on 2019/05/10 16:02:00 UTC

[jira] [Commented] (HADOOP-14524) Make CryptoCodec Closeable so it can be cleaned up proactively

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

Kuhu Shukla commented on HADOOP-14524:
--------------------------------------

[~xiaochen], can we cherry-pick this to 2.8 branch? Thanks and appreciate any inputs. CC: [~kihwal]

> Make CryptoCodec Closeable so it can be cleaned up proactively
> --------------------------------------------------------------
>
>                 Key: HADOOP-14524
>                 URL: https://issues.apache.org/jira/browse/HADOOP-14524
>             Project: Hadoop Common
>          Issue Type: Improvement
>            Reporter: Xiao Chen
>            Assignee: Xiao Chen
>            Priority: Major
>             Fix For: 2.9.0, 3.0.0-alpha4
>
>         Attachments: HADOOP-14524.01.patch, HADOOP-14524.branch-2.01.patch
>
>
> See HADOOP-14523 for motivation. Credit to [~misha@cloudera.com] for reporting initially there.
> Basically, the {{CryptoCodec}} class is not a closeable, but the {{OpensslAesCtrCryptoCodec}} implementation of it contains a closeable member (the Random object). Currently it is left for {{finalize()}} to clean up, this depends on when a FGC is run, and would create problems if {{OpensslAesCtrCryptoCodec}} is used with {{OsSecureRandom}}, which could let OS run out of FDs on {{/dev/urandom}} if too many codecs created.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

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