Skip to content

armgit / solr

Public Imported from GitHub
0

Apache Solr open-source search software

SOLR-16452 : do not update PRS state if the local version is newer

Noble Paul157c2caaed7e
diff --git a/solr/solrj/src/java/org/apache/solr/common/cloud/DocCollection.java b/solr/solrj/src/java/org/apache/solr/common/cloud/DocCollection.java
index fa1a8f415c2..6d4f6394d45 100644
--- a/solr/solrj/src/java/org/apache/solr/common/cloud/DocCollection.java
+++ b/solr/solrj/src/java/org/apache/solr/common/cloud/DocCollection.java
@@ -146,7 +146,7 @@ public class DocCollection extends ZkNodeProps implements Iterable<Slice> {
getChildNodesVersion(),
newPerReplicaStates.cversion);
}
- if (getChildNodesVersion() == newPerReplicaStates.cversion) return this;
+ if (getChildNodesVersion() >= newPerReplicaStates.cversion) return this;
Set<String> modifiedReplicas =
PerReplicaStates.findModifiedReplicas(newPerReplicaStates, this.perReplicaStates);
if (modifiedReplicas.isEmpty()) return this; // nothing is modified