lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Chris Male (JIRA)" <>
Subject [jira] Commented: (SOLR-2019) Jetty sometimes randomly takes a long time to start
Date Wed, 28 Jul 2010 15:00:17 GMT


Chris Male commented on SOLR-2019:

It is possible to set Random in the SessionIDManager programmatically using the following

Server server = new Server();
HashSessionIdManager idManager = new HashSessionIdManager();
idManager.setRandom(new Random());

> Jetty sometimes randomly takes a long time to start
> ---------------------------------------------------
>                 Key: SOLR-2019
>                 URL:
>             Project: Solr
>          Issue Type: Bug
>            Reporter: Michael McCandless
>             Fix For: 3.1, 4.0
> I'm hitting this Jetty issue when running Solr's tests that spawn a Jetty:
> It seems to be caused by this root cause:
> Whereby, somehow, Jetty is trying to use cryptographically secure source of randomness
to seed seed its HashSessionIdManager.  My box doesn't have enough entropy so the read blocks
for sometimes 10s of seconds!
> If I forcefully symlink /dev/random -> /dev/urandom, that fixes the hang.  Likewise,
if I edit the JRE's to  set securerandom.source=file:/dev/./urandom, that also
fixes it.  But I think we can workaround this more "generally" by doing the workaround suggested
in the Jetty issue (pass java.util.Random not
> However, it's still not clear how widespread / what evns this issue really affects (besides

This message is automatically generated by JIRA.
You can reply to this email to add a comment to the issue online.

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message