You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucene.apache.org by ro...@apache.org on 2014/11/25 12:42:32 UTC
svn commit: r1641586 - in /lucene/dev/trunk/solr: CHANGES.txt
core/src/java/org/apache/solr/update/DirectUpdateHandler2.java
Author: romseygeek
Date: Tue Nov 25 11:42:31 2014
New Revision: 1641586
URL: http://svn.apache.org/r1641586
Log:
SOLR-6751: Analysis errors should return BAD_REQUEST, not SERVER_ERROR
Modified:
lucene/dev/trunk/solr/CHANGES.txt
lucene/dev/trunk/solr/core/src/java/org/apache/solr/update/DirectUpdateHandler2.java
Modified: lucene/dev/trunk/solr/CHANGES.txt
URL: http://svn.apache.org/viewvc/lucene/dev/trunk/solr/CHANGES.txt?rev=1641586&r1=1641585&r2=1641586&view=diff
==============================================================================
--- lucene/dev/trunk/solr/CHANGES.txt (original)
+++ lucene/dev/trunk/solr/CHANGES.txt Tue Nov 25 11:42:31 2014
@@ -417,6 +417,9 @@ Other Changes
* SOLR-6754: ZkController.publish doesn't use the updateLastState parameter.
(shalin)
+* SOLR-6751: Exceptions thrown in the analysis chain in DirectUpdateHandler2
+ should return a BAD_REQUEST status (Alan Woodward)
+
================== 4.10.3 ==================
Bug Fixes
Modified: lucene/dev/trunk/solr/core/src/java/org/apache/solr/update/DirectUpdateHandler2.java
URL: http://svn.apache.org/viewvc/lucene/dev/trunk/solr/core/src/java/org/apache/solr/update/DirectUpdateHandler2.java?rev=1641586&r1=1641585&r2=1641586&view=diff
==============================================================================
--- lucene/dev/trunk/solr/core/src/java/org/apache/solr/update/DirectUpdateHandler2.java (original)
+++ lucene/dev/trunk/solr/core/src/java/org/apache/solr/update/DirectUpdateHandler2.java Tue Nov 25 11:42:31 2014
@@ -165,7 +165,7 @@ public class DirectUpdateHandler2 extend
} catch (SolrException e) {
throw e;
} catch (RuntimeException t) {
- throw new SolrException(SolrException.ErrorCode.SERVER_ERROR,
+ throw new SolrException(SolrException.ErrorCode.BAD_REQUEST,
String.format(Locale.ROOT, "Exception writing document id %s to the index; possible analysis error.",
cmd.getPrintableId()), t);
}