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

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

bq.  I don't think we can have users invoke core admin CREATE and UNLOAD 
commands directly. Instead they should use collection APIs such as addReplica 
and deleteReplica exclusively. These APIs will invoke overseer commands (to 
assign a coreNodeName) and then invoke the core admin APIs.

Noble and I had an offline discussion about this -- The coreadmin CREATE will 
fail if used directly against a collection in the new mode. The UNLOAD will 
still work but it won't remove the node from cluster state. This is because the 
removeReplica API must also call UNLOAD after removing the node from cluster 
state so the unload has to work independently. I don't see a way around that.

> Don't let cores create slices/named replicas
> --------------------------------------------
>
>                 Key: SOLR-5609
>                 URL: https://issues.apache.org/jira/browse/SOLR-5609
>             Project: Solr
>          Issue Type: Sub-task
>          Components: SolrCloud
>            Reporter: Noble Paul
>             Fix For: 4.7, 5.0
>
>         Attachments: SOLR-5609_5130.patch, SOLR-5609_5130.patch, 
> SOLR-5609_5130.patch, SOLR-5609_5130.patch
>
>
> In SolrCloud, it is possible for a core to come up in any node , and register 
> itself with an arbitrary slice/coreNodeName. This is a legacy requirement and 
> we would like to make it only possible for Overseer to initiate creation of 
> slice/replicas
> We plan to introduce cluster level properties at the top level
> /cluster-props.json
> {code:javascript}
> {
> "noSliceOrReplicaByCores":true"
> }
> {code}
> If this property is set to true, cores won't be able to send STATE commands 
> with unknown slice/coreNodeName . Those commands will fail at Overseer. This 
> is useful for SOLR-5310 / SOLR-5311 where a core/replica is deleted by a 
> command and  it comes up later and tries to create a replica/slice



--
This message was sent by Atlassian JIRA
(v6.1.5#6160)

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

Reply via email to