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 2013/12/30 01:25:11 UTC
svn commit: r1554109 -
/lucene/dev/trunk/solr/core/src/java/org/apache/solr/update/processor/DistributedUpdateProcessor.java
Author: markrmiller
Date: Mon Dec 30 00:25:10 2013
New Revision: 1554109
URL: http://svn.apache.org/r1554109
Log:
when sending a non retry update fails, log it at warn level
Modified:
lucene/dev/trunk/solr/core/src/java/org/apache/solr/update/processor/DistributedUpdateProcessor.java
Modified: lucene/dev/trunk/solr/core/src/java/org/apache/solr/update/processor/DistributedUpdateProcessor.java
URL: http://svn.apache.org/viewvc/lucene/dev/trunk/solr/core/src/java/org/apache/solr/update/processor/DistributedUpdateProcessor.java?rev=1554109&r1=1554108&r2=1554109&view=diff
==============================================================================
--- lucene/dev/trunk/solr/core/src/java/org/apache/solr/update/processor/DistributedUpdateProcessor.java (original)
+++ lucene/dev/trunk/solr/core/src/java/org/apache/solr/update/processor/DistributedUpdateProcessor.java Mon Dec 30 00:25:10 2013
@@ -614,6 +614,12 @@ public class DistributedUpdateProcessor
// if one node is a RetryNode, this was a forward request
if (errors.get(0).req.node instanceof RetryNode) {
rsp.setException(errors.get(0).e);
+ } else {
+ if (log.isWarnEnabled()) {
+ for (Error error : errors) {
+ log.warn("Error sending update", error.e);
+ }
+ }
}
// else
// for now we don't error - we assume if it was added locally, we
@@ -625,7 +631,6 @@ public class DistributedUpdateProcessor
// recover - the doc was already added locally, so it should have been
// legit
- // TODO: we should do this in the background it would seem
for (final SolrCmdDistributor.Error error : errors) {
if (error.req.node instanceof RetryNode) {
// we don't try to force a leader to recover