lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Erick Erickson (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (SOLR-6278) add admin/collections?action=DELETEREPLICA&core=... support, make collection=... and shard=... parameters optional
Date Fri, 26 Sep 2014 17:43:36 GMT

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

Erick Erickson commented on SOLR-6278:
--------------------------------------

bq: The most straightforward way I can think of is using all directories under it as core
names.

Hmmm, this is actually do-able right now with the core admin API or the admin web interface
on the particular node.
NOTE: I'm running 4.8.1

a command like:
http://192.168.1.201:7500/solr/admin/cores?action=UNLOAD&deleteInstanceDir=true&core=eoe1_shard8_replica1
deletes the core, reclaims all the disk space and de-registers the node with ZK.

>From the solr/admin screen, you can select the core and hit the "UNLOAD" button and the
core is gone and de-registered from the cluster state. Currently it does NOT come back when
you reboot as all the core.properties files are renamed core.properties.unloaded. The directory
is left intact though on the disk and needs to be manually removed.

If the node is down for some reason one can delete everything in that specific SOLR_HOME of
course.The cluster state can be cleaned up with the onlyIfDown parameter to the DELETEREPLICA
collections API command (new).

So it seems like this scenario is covered, and introducing this would add some complexity
so I think I'll mark this as "won't fix" if we agree.

> add admin/collections?action=DELETEREPLICA&core=... support, make collection=...
and shard=... parameters optional
> ------------------------------------------------------------------------------------------------------------------
>
>                 Key: SOLR-6278
>                 URL: https://issues.apache.org/jira/browse/SOLR-6278
>             Project: Solr
>          Issue Type: Improvement
>            Reporter: Christine Poerschke
>            Assignee: Erick Erickson
>         Attachments: SOLR-6278.patch
>
>
> To add {{core=...}} as an alternative to {{replica=...}} way of identifying what is to
be deleted, {{collection=...}} and {{shard=...}} to be optional provided the other parameters
uniquely identify exactly one deletion target.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org


Mime
View raw message