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

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

I've run into a roadblock fixing SOLR-12756 where create shard command finds 
replica positions for all replicas in the shard and then calls add replica 
1-by-1 for each position. This is to ensure that it is possible to place all 
replicas before attempting to create even one. However, then add replica skips 
finding replica positions only if policy engine is being used. This means that 
we cannot get rid of this special case from add replica until and unless we fix 
this issue.

Thankfully, this is easy because the logic and code to do this is already 
inside Create Shard Command. So this is a matter of migrating the logic to add 
replica and making create shard a thin wrapper around add replica API.

> ADDREPLICA command should be more flexible and add 'n' replicas to a 
> collection,shard
> -------------------------------------------------------------------------------------
>
>                 Key: SOLR-9317
>                 URL: https://issues.apache.org/jira/browse/SOLR-9317
>             Project: Solr
>          Issue Type: New Feature
>      Security Level: Public(Default Security Level. Issues are Public) 
>          Components: SolrCloud
>            Reporter: Noble Paul
>            Assignee: Shalin Shekhar Mangar
>            Priority: Major
>             Fix For: 6.1
>
>
> It should automatically identify the nodes where these replicas should be 
> created as well



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to