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

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

We should really be discussing this under SOLR-5096.

bq. Having legacyCloudMode (or whatever it's named) = false should allow the 
cluster to disable the ability for cores to create collections or remove them 
and turn on the features that let the cluster use zk as the truth.

+1 in general. This also bring up the question of what features are must to 
have to use zk as the truth. 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.

bq. The other thing to note, is that we don't have to have this new mode do 
everything that makes sense to do to make zk the truth initially. It's ability 
to make zk the truth can improve over time. We won't be limited by the history 
that are with the legacy mode.

I think at a minimum we need to implement this mode plus SOLR-5130 (addReplica 
API) before we release this. The modifyCollection APIs and other things can 
come in later.

What do you think?

> 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: 5.0, 4.7
>
>
> 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