From time to time, I get:
<error message="java.net.ConnectException: Connection refused"
type
=
"org
.apache
.solr
.client
.solrj
.SolrServerException
">org.apache.solr.client.solrj.SolrServerException:
java.net.ConnectExcept
ion: Connection refused
at
org
.apache
.solr
.client
.solrj.impl.CommonsHttpSolrServer.request(CommonsHttpSolrServer.java:
359)
at
org
.apache
.solr
.client
.solrj.impl.CommonsHttpSolrServer.request(CommonsHttpSolrServer.java:
155)
at
org
.apache
.solr.client.solrj.request.UpdateRequest.process(UpdateRequest.java:220)
at
org.apache.solr.client.solrj.SolrServer.deleteByQuery(SolrServer.java:
114)
at
org.apache.solr.TestDistributedSearch.del(TestDistributedSearch.java:
166)
at
org
.apache.solr.TestDistributedSearch.doTest(TestDistributedSearch.java:
432)
at
org
.apache
.solr
.TestDistributedSearch.testDistribSearch(TestDistributedSearch.java:427)
Caused by: java.net.ConnectException: Connection refused
at java.net.PlainSocketImpl.socketConnect(Native Method)
at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:333)
at
java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:195)
at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:182)
at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:432)
at java.net.Socket.connect(Socket.java:520)
at
org
.apache
.commons
.httpclient
.protocol
.ReflectionSocketFactory.createSocket(ReflectionSocketFactory.java:140)
at
org
.apache
.commons
.httpclient
.protocol
.DefaultProtocolSocketFactory
.createSocket(DefaultProtocolSocketFactory.java:125)
at
org.apache.commons.httpclient.HttpConnection.open(HttpConnection.java:
707)
at
org.apache.commons.httpclient.MultiThreadedHttpConnectionManager
$HttpConnectionAdapter.open(MultiThreadedHttpConnectionManager.java:
1361)
at
org
.apache
.commons
.httpclient
.HttpMethodDirector.executeWithRetry(HttpMethodDirector.java:387)
at
org
.apache
.commons
.httpclient.HttpMethodDirector.executeMethod(HttpMethodDirector.java:
171)
at
org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:
397)
at
org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:
323)
at
org
.apache
.solr
.client
.solrj.impl.CommonsHttpSolrServer.request(CommonsHttpSolrServer.java:
303)
</error>
when running ant clean test
I am assuming it is a timing issue. Is there a different way we could
create the servers?
-Grant