Skip to content

Apache Lucene open-source search software

SOLR-3465: Replication causes two searcher warmups.

Mark Robert Millerf76916917748
diff --git a/solr/CHANGES.txt b/solr/CHANGES.txt
index b17c78315cb..6206c4408ad 100644
--- a/solr/CHANGES.txt
+++ b/solr/CHANGES.txt
@@ -227,6 +227,10 @@ Bug Fixes
* SOLR-3831: Atomic updates do not distribute correctly to other nodes.
(Jim Musil, Mark Miller)
+
+* SOLR-3465: Replication causes two searcher warmups.
+ (Michael Garski, Mark Miller)
+
Other Changes
----------------------
diff --git a/solr/core/src/java/org/apache/solr/handler/SnapPuller.java b/solr/core/src/java/org/apache/solr/handler/SnapPuller.java
index 1208e63f333..1f566293e53 100644
--- a/solr/core/src/java/org/apache/solr/handler/SnapPuller.java
+++ b/solr/core/src/java/org/apache/solr/handler/SnapPuller.java
@@ -555,7 +555,10 @@ public class SnapPuller {
}
// update our commit point to the right dir
- solrCore.getUpdateHandler().commit(new CommitUpdateCommand(req, false));
+ CommitUpdateCommand cuc = new CommitUpdateCommand(req, false);
+ cuc.waitSearcher = false;
+ cuc.openSearcher = false;
+ solrCore.getUpdateHandler().commit(cuc);
} finally {
req.close();