hbase-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Lars Hofhansl (Commented) (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (HBASE-4874) TestHCM#testClosing fails if not enough entropy is available
Date Sat, 26 Nov 2011 05:53:39 GMT

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

Lars Hofhansl commented on HBASE-4874:
--------------------------------------

This happens at least on Linux when SecureRandom is used.
SecureRandom used /dev/random in Linux, which will block if not enough entropy has been gathered
by system events (disk, network, keyboard, mouse movements, etc).

It's *not* only testClosing. Every time a test cluster is started it might hang, if the system
happens to run out of entropy its to generated secure random numbers. I've seen the same with
TestFromClient and other tests that start an actual cluster for the test.

The fix I found was to add "-Djava.security.egd=file:/dev/./urandom" (note the extra ./ in
path is needed for JDK 1.5 or newer) to the command line.

                
> TestHCM#testClosing fails if not enough entropy is available
> ------------------------------------------------------------
>
>                 Key: HBASE-4874
>                 URL: https://issues.apache.org/jira/browse/HBASE-4874
>             Project: HBase
>          Issue Type: Bug
>    Affects Versions: 0.92.0
>            Reporter: Ted Yu
>
> TestHCM#testClosing fails if not enough entropy is available

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Mime
View raw message