Apache Lucene open-source search software
SOLR-1628: log contains incorrect number of adds and deletes
Yonik Seeleyac47aa00b268
diff --git a/CHANGES.txt b/CHANGES.txtindex 143e07019d8..533bc3fbfc1 100644--- a/CHANGES.txt+++ b/CHANGES.txt@@ -107,6 +107,9 @@ Bug Fixes* SOLR-1615: Backslash escaping did not work in quoted stringsfor local param arguments. (Wojtek Piaseczny, yonik)+* SOLR-1628: log contains incorrect number of adds and deletes.+ (Thijs Vonk via yonik)+Other Changes----------------------diff --git a/src/java/org/apache/solr/update/processor/LogUpdateProcessorFactory.java b/src/java/org/apache/solr/update/processor/LogUpdateProcessorFactory.javaindex 563981d1bd8..b238a9c0130 100644--- a/src/java/org/apache/solr/update/processor/LogUpdateProcessorFactory.java+++ b/src/java/org/apache/solr/update/processor/LogUpdateProcessorFactory.java@@ -162,10 +162,10 @@ class LogUpdateProcessor extends UpdateRequestProcessor {// if id lists were truncated, show how many more there wereif (adds != null && numAdds > maxNumToLog) {- adds.add("... (" + adds.size() + " added)");+ adds.add("... (" + numAdds + " adds)");}if (deletes != null && numDeletes > maxNumToLog) {- deletes.add("... (" + deletes.size() + " removed)");+ deletes.add("... (" + numDeletes + " deletes)");}long elapsed = rsp.getEndTime() - req.getStartTime();log.info( ""+toLog + " 0 " + (elapsed) );