lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "ASF subversion and git services (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (SOLR-6874) There is a race around SocketProxy binding to it's port the way we setup JettySolrRunner and SocketProxy.
Date Sat, 03 Jan 2015 00:21:34 GMT

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

ASF subversion and git services commented on SOLR-6874:
-------------------------------------------------------

Commit 1649154 from [~thelabdude] in branch 'dev/trunk'
[ https://svn.apache.org/r1649154 ]

SOLR-6874: There is a race around SocketProxy binding to it's port the way we setup JettySolrRunner
and SocketProxy.

> There is a race around SocketProxy binding to it's port the way we setup JettySolrRunner
and SocketProxy.
> ---------------------------------------------------------------------------------------------------------
>
>                 Key: SOLR-6874
>                 URL: https://issues.apache.org/jira/browse/SOLR-6874
>             Project: Solr
>          Issue Type: Bug
>            Reporter: Mark Miller
>            Assignee: Mark Miller
>         Attachments: SOLR-6874.patch
>
>
> I ran into this while working on SOLR-4509 and have a fix there in my latest patch. Because
we get an available port by opening and closing a scocket on port 0 and then try to use it
again with the SocketProxy, sometimes it fails to bind and the test can fail. We can change
the code a bit so that the SocketProxy itself can start on port 0 rather than this two step
fragile process.



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

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org


Mime
View raw message