You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "Robert Muir (JIRA)" <ji...@apache.org> on 2010/07/28 17:07:17 UTC

[jira] Updated: (SOLR-2019) Jetty sometimes randomly takes a long time to start

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

Robert Muir updated SOLR-2019:
------------------------------

    Attachment: SOLR-2019_insecure.patch

here is a patch (not for committing) to see if it resolves it. if so i think we should do this from tests...

> Jetty sometimes randomly takes a long time to start
> ---------------------------------------------------
>
>                 Key: SOLR-2019
>                 URL: https://issues.apache.org/jira/browse/SOLR-2019
>             Project: Solr
>          Issue Type: Bug
>            Reporter: Michael McCandless
>             Fix For: 3.1, 4.0
>
>         Attachments: SOLR-2019_insecure.patch
>
>
> I'm hitting this Jetty issue when running Solr's tests that spawn a Jetty:
>     http://jira.codehaus.org/browse/JETTY-331
> It seems to be caused by this root cause:
>     http://bugs.sun.com/view_bug.do?bug_id=6202721
> 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 java.security 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 java.security.SecureRandom).
> However, it's still not clear how widespread / what evns this issue really affects (besides mine)...

-- 
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: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org