There's already an issue for this, https://issues.apache.org/jira/browse/SOLR-5209, we were once bitten by the same issue, when we were trying to relocate a shard. As Mark mentions, the idea was to do this in zk truth mode, the link also references where that work is being done. On 31 Jan 2014 23:10, "David Smiley (@MITRE.org)" <dsmi...@mitre.org> wrote:
> Hi, > > If I issue either a core UNLOAD command, or a collection DELETEREPLICA > command, (which both seem pretty much equivalent) it works but if there > are > no other replicas for the shard, then the metadata for the shard is > completely gone in clusterstate.json! That's pretty disconcerting because > you're basically hosed. Of course, why would I even want to do that? Well > I'm experimenting with ways to restore a backed-up replica to replace > existing data for the shard. > > If this is unexpected behavior then I'll file a bug. > > ~ David > > > > ----- > Author: > http://www.packtpub.com/apache-solr-3-enterprise-search-server/book > -- > View this message in context: > http://lucene.472066.n3.nabble.com/Removing-last-replica-from-a-SolrCloud-collection-tp4114772.html > Sent from the Solr - User mailing list archive at Nabble.com. >