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

Arun Suresh commented on HADOOP-11891:
--------------------------------------

[~andrew.wang], thanks for the review
Manually tested and verified using *lsof* that no new file descriptors are 
created for */dev/urandom* when {{OsSecureRandom}} is initialized and 
{{setConf()}} is called.. only when a random bytes are requested.


> OsSecureRandom should lazily fill its reservoir
> -----------------------------------------------
>
>                 Key: HADOOP-11891
>                 URL: https://issues.apache.org/jira/browse/HADOOP-11891
>             Project: Hadoop Common
>          Issue Type: Bug
>    Affects Versions: 2.7.0
>            Reporter: Arun Suresh
>            Assignee: Arun Suresh
>             Fix For: 2.7.1
>
>         Attachments: HADOOP-11891.1.patch, HADOOP-11891.2.patch
>
>
> The {{OsSecureRandom}} class that is initialized by on the the 
> {{CryptoCodec}} implementations eagerly fills its reservoir of random bits. 
> This will result in too many file descriptors being opened simply and is not 
> really required if the client already has a random IV and key needed for 
> decryption.



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

Reply via email to