[ 
https://issues.apache.org/jira/browse/HADOOP-14524?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Xiao Chen updated HADOOP-14524:
-------------------------------
       Resolution: Fixed
     Hadoop Flags: Reviewed
    Fix Version/s: 3.0.0-alpha4
                   2.9.0
           Status: Resolved  (was: Patch Available)

Committed this to trunk and branch-2. Thanks again Andrew!

> 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
>             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 [[email protected]] 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
(v6.4.14#64029)

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

Reply via email to