You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "Shalin Shekhar Mangar (JIRA)" <ji...@apache.org> on 2013/04/06 08:03:16 UTC

[jira] [Resolved] (SOLR-4682) CoreAdminRequest.mergeIndexes can not merge mutilple cores.

     [ https://issues.apache.org/jira/browse/SOLR-4682?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Shalin Shekhar Mangar resolved SOLR-4682.
-----------------------------------------

       Resolution: Fixed
    Fix Version/s: 5.0
                   4.3
         Assignee: Shalin Shekhar Mangar

Fixed in trunk and branch_4x.
                
> CoreAdminRequest.mergeIndexes can not merge mutilple cores.
> -----------------------------------------------------------
>
>                 Key: SOLR-4682
>                 URL: https://issues.apache.org/jira/browse/SOLR-4682
>             Project: Solr
>          Issue Type: Bug
>          Components: clients - java
>    Affects Versions: 4.2
>         Environment: java version "1.6.0_20"
>            Reporter: Jason.D.Cao
>            Assignee: Shalin Shekhar Mangar
>              Labels: patch
>             Fix For: 4.3, 5.0
>
>         Attachments: SOLR-4682.patch
>
>   Original Estimate: 1h
>  Remaining Estimate: 1h
>
> The mergeIndexes method in CoreAdminRequest class accepts an array of srcCores, but it only merge the last core of array into targetCore. Related code as follows,
> if (srcCores != null) {
> 	for (String srcCore : srcCores) {
> 		params.set(CoreAdminParams.SRC_CORE, srcCore);
> 	}
> }
> The for-each loop above overrides the SRC_CORE value in params and only the last one reserved when loop ends.
> We should remove the for-each loop and set SRC_CORE value with an array of srcCores.
> The code above is in CoreAdminRequest class line 330

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

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