[ 
https://issues.apache.org/jira/browse/SOLR-6206?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14044623#comment-14044623
 ] 

Shalin Shekhar Mangar commented on SOLR-6206:
---------------------------------------------

Sorry, the changes in this patch were not required because we were already 
deleting the temporary collection at the start of the migrateKey method. We 
only need to do the following:

{code}
       try {
         deleteCollection(new ZkNodeProps(props), results);
+        clusterState = zkStateReader.getClusterState();
       } catch (Exception e) {
         log.warn("Unable to clean up existing temporary collection: " + 
tempSourceCollectionName, e);
       }
{code}

We just need to refresh the cluster state object after deleting the collection 
for re-tries to work. I'll commit this change.

> The migrate collection API fails on retry because temp collection already 
> exists
> --------------------------------------------------------------------------------
>
>                 Key: SOLR-6206
>                 URL: https://issues.apache.org/jira/browse/SOLR-6206
>             Project: Solr
>          Issue Type: Bug
>          Components: SolrCloud
>            Reporter: Shalin Shekhar Mangar
>            Assignee: Shalin Shekhar Mangar
>            Priority: Minor
>             Fix For: 5.0, 4.10
>
>         Attachments: SOLR-6206.patch
>
>
> The migrate collection API fails on retry because temp collection already 
> exists. We should attempt to re-use a temp collection after cleaning it up 
> instead of failing the command.



--
This message was sent by Atlassian JIRA
(v6.2#6252)

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@lucene.apache.org
For additional commands, e-mail: dev-h...@lucene.apache.org

Reply via email to