[
https://issues.apache.org/jira/browse/SOLR-3869?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13461537#comment-13461537
]
Mark Miller commented on SOLR-3869:
-----------------------------------
{code}Modified:
lucene/dev/branches/lucene_solr_4_0/solr/core/src/java/org/apache/solr/update/PeerSync.java
URL:
http://svn.apache.org/viewvc/lucene/dev/branches/lucene_solr_4_0/solr/core/src/java/org/apache/solr/update/PeerSync.java?rev=1389162&r1=1389161&r2=1389162&view=diff
==============================================================================
---
lucene/dev/branches/lucene_solr_4_0/solr/core/src/java/org/apache/solr/update/PeerSync.java
(original)
+++
lucene/dev/branches/lucene_solr_4_0/solr/core/src/java/org/apache/solr/update/PeerSync.java
Sun Sep 23 23:14:14 2012
@@ -28,6 +28,7 @@ import java.util.Set;
import org.apache.http.NoHttpResponseException;
import org.apache.http.client.HttpClient;
+import org.apache.http.conn.ConnectTimeoutException;
import org.apache.lucene.util.BytesRef;
import org.apache.solr.client.solrj.SolrServerException;
import org.apache.solr.client.solrj.impl.HttpClientUtil;
@@ -299,7 +300,7 @@ public class PeerSync {
if (cantReachIsSuccess && sreq.purpose == 1 && srsp.getException()
instanceof SolrServerException) {
Throwable solrException = ((SolrServerException) srsp.getException())
.getRootCause();
- if (solrException instanceof ConnectException
+ if (solrException instanceof ConnectException || solrException
instanceof ConnectTimeoutException
|| solrException instanceof NoHttpResponseException) {
log.warn(msg() + " couldn't connect to " + srsp.getShardAddress() +
", counting as success");{code}
> A PeerSync attempt to it's replicas by a candidate leader should not fail on
> o.a.http.conn.ConnectTimeoutException
> ------------------------------------------------------------------------------------------------------------------
>
> Key: SOLR-3869
> URL: https://issues.apache.org/jira/browse/SOLR-3869
> Project: Solr
> Issue Type: Bug
> Components: SolrCloud
> Reporter: Mark Miller
> Assignee: Mark Miller
> Priority: Blocker
> Fix For: 4.0, 5.0
>
>
> I'd like to fix this for 4 - it's a simple fix.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]