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 "Yongjun Zhang (JIRA)" <ji...@apache.org> on 2014/09/03 19:21:51 UTC
[jira] [Commented] (HADOOP-11056) OsSecureRandom.setConf() might
leak resource
[ https://issues.apache.org/jira/browse/HADOOP-11056?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14120109#comment-14120109 ]
Yongjun Zhang commented on HADOOP-11056:
----------------------------------------
BTW, The added test is for observation purpose. There may not be a stable way to detect the problem but one can observe the difference with this testcase before and after the fix.
> OsSecureRandom.setConf() might leak resource
> --------------------------------------------
>
> Key: HADOOP-11056
> URL: https://issues.apache.org/jira/browse/HADOOP-11056
> Project: Hadoop Common
> Issue Type: Bug
> Components: security
> Affects Versions: 2.5.0
> Reporter: Yongjun Zhang
> Assignee: Yongjun Zhang
> Attachments: HADOOP-11056.001.patch
>
>
> OsSecureRandom.setConf() might leak resource, the stream is not closed when:
> 1. if setConf() is called a second time
> 2. if {{fillReservoir(0);}} throw exception.
>
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)