Apache Lucene open-source search software
must have lost this: when force=true, do not trust comparing version and generation - this is not a strong enough check
Mark Robert Miller21e0d0c90937
diff --git a/solr/core/src/java/org/apache/solr/handler/SnapPuller.java b/solr/core/src/java/org/apache/solr/handler/SnapPuller.javaindex c6c25325b7f..9c900fddeaa 100644--- a/solr/core/src/java/org/apache/solr/handler/SnapPuller.java+++ b/solr/core/src/java/org/apache/solr/handler/SnapPuller.java@@ -288,7 +288,7 @@ public class SnapPuller {return true;}- if (commit.getVersion() == latestVersion && commit.getGeneration() == latestGeneration) {+ if (!force && commit.getVersion() == latestVersion && commit.getGeneration() == latestGeneration) {//master and slave are already in sync just returnLOG.info("Slave in sync with master.");successfulInstall = true;