[
https://issues.apache.org/jira/browse/SOLR-5209?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13756827#comment-13756827
]
Daniel Collins commented on SOLR-5209:
--------------------------------------
Ok, my bad, I wasn't clear enough. At the user-level there is collections API
and core API, and yes one is just a wrapper around the other. But at the
Overseer level, we seem to have various different sub-commands (not sure what
the correct terminology for them is!): create_shard, removeshard,
createcollection, removecollection, deletecore, etc. I appreciate this is
probably historical code, but since we have these other methods, it felt like
deletecore was overstepping its bounds now :)
Could submit an extra patch, but wasn't sure of the historical nature of this
code, hence just a comment first to get an opinion/discussion.
> cores/action=UNLOAD of last replica removes shard from clusterstate
> -------------------------------------------------------------------
>
> Key: SOLR-5209
> URL: https://issues.apache.org/jira/browse/SOLR-5209
> Project: Solr
> Issue Type: Bug
> Components: SolrCloud
> Affects Versions: 4.4
> Reporter: Christine Poerschke
> Assignee: Mark Miller
> Attachments: SOLR-5209.patch
>
>
> The problem we saw was that unloading of an only replica of a shard deleted
> that shard's info from the clusterstate. Once it was gone then there was no
> easy way to re-create the shard (other than dropping and re-creating the
> whole collection's state).
> This seems like a bug?
> Overseer.java around line 600 has a comment and commented out code:
> // TODO TODO TODO!!! if there are no replicas left for the slice, and the
> slice has no hash range, remove it
> // if (newReplicas.size() == 0 && slice.getRange() == null) {
> // if there are no replicas left for the slice remove it
--
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: [email protected]
For additional commands, e-mail: [email protected]