You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucene.apache.org by ma...@apache.org on 2012/07/19 15:49:55 UTC
svn commit: r1363330 -
/lucene/dev/trunk/solr/solrj/src/java/org/apache/solr/client/solrj/impl/HttpSolrServer.java
Author: markrmiller
Date: Thu Jul 19 13:49:55 2012
New Revision: 1363330
URL: http://svn.apache.org/viewvc?rev=1363330&view=rev
Log:
don't treat 404 special and lost the http response code
Modified:
lucene/dev/trunk/solr/solrj/src/java/org/apache/solr/client/solrj/impl/HttpSolrServer.java
Modified: lucene/dev/trunk/solr/solrj/src/java/org/apache/solr/client/solrj/impl/HttpSolrServer.java
URL: http://svn.apache.org/viewvc/lucene/dev/trunk/solr/solrj/src/java/org/apache/solr/client/solrj/impl/HttpSolrServer.java?rev=1363330&r1=1363329&r2=1363330&view=diff
==============================================================================
--- lucene/dev/trunk/solr/solrj/src/java/org/apache/solr/client/solrj/impl/HttpSolrServer.java (original)
+++ lucene/dev/trunk/solr/solrj/src/java/org/apache/solr/client/solrj/impl/HttpSolrServer.java Thu Jul 19 13:49:55 2012
@@ -369,9 +369,6 @@ public class HttpSolrServer extends Solr
+ " sent back a redirect (" + httpStatus + ").");
}
break;
- case HttpStatus.SC_NOT_FOUND:
- throw new SolrServerException("Server at " + getBaseURL()
- + " was not found (404).");
default:
throw new SolrException(SolrException.ErrorCode.getErrorCode(httpStatus), "Server at " + getBaseURL()
+ " returned non ok status:" + httpStatus + ", message:"