Skip to content

armgit / solr

Public Imported from GitHub
0

Apache Solr open-source search software

SOLR-6206: The migrate collection API fails on retry if temp collection already exists

Shalin Shekhar Mangarc296d9df0fda
diff --git a/solr/CHANGES.txt b/solr/CHANGES.txt
index 69bb1367352..c1be3833bb2 100644
--- a/solr/CHANGES.txt
+++ b/solr/CHANGES.txt
@@ -103,6 +103,9 @@ Bug Fixes
* SOLR-6197: The MIGRATE collection API doesn't work when legacyCloud=false is set
in cluster properties. (shalin)
+* SOLR-6206: The migrate collection API fails on retry if temp collection already exists.
+ (shalin)
+
Other Changes
---------------------
diff --git a/solr/core/src/java/org/apache/solr/cloud/OverseerCollectionProcessor.java b/solr/core/src/java/org/apache/solr/cloud/OverseerCollectionProcessor.java
index b6ff95352e7..82ede3bb144 100644
--- a/solr/core/src/java/org/apache/solr/cloud/OverseerCollectionProcessor.java
+++ b/solr/core/src/java/org/apache/solr/cloud/OverseerCollectionProcessor.java
@@ -1762,6 +1762,7 @@ public class OverseerCollectionProcessor implements Runnable, ClosableThread {
try {
deleteCollection(new ZkNodeProps(props), results);
+ clusterState = zkStateReader.getClusterState();
} catch (Exception e) {
log.warn("Unable to clean up existing temporary collection: " + tempSourceCollectionName, e);
}