Skip to content

Apache Lucene open-source search software

when sending a non retry update fails, log it at warn level

Mark Robert Millere73c522f0b10
diff --git a/solr/core/src/java/org/apache/solr/update/processor/DistributedUpdateProcessor.java b/solr/core/src/java/org/apache/solr/update/processor/DistributedUpdateProcessor.java
index 2d8b555d329..2d7c276e3e0 100644
--- a/solr/core/src/java/org/apache/solr/update/processor/DistributedUpdateProcessor.java
+++ b/solr/core/src/java/org/apache/solr/update/processor/DistributedUpdateProcessor.java
@@ -614,6 +614,12 @@ public class DistributedUpdateProcessor extends UpdateRequestProcessor {
// 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 extends UpdateRequestProcessor {
// 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