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

Vamsee Yarlagadda commented on SOLR-7124:
-----------------------------------------

Looks like "zkcli .. -cmd clear <znode>" can delete the znodes recursively. So 
a user can call this for /solr/configs/<ConfigName> to delete a config.
https://github.com/apache/lucene-solr/blob/trunk/solr/core/src/java/org/apache/solr/cloud/ZkCLI.java#L236

I agree the users didn't have the direct option to delete the config (similar 
to upconfig, downconfig). It would be good to have one.
bq. It should refuse to delete a config that is in use by any current 
collection.
We should also keep in mind that a user can replace existing configs for a 
collection and call collection RELOAD. So adding this check can prevent one 
from easily replacing configs. Thoughts?

> Add "delconfig" command to zkcli
> --------------------------------
>
>                 Key: SOLR-7124
>                 URL: https://issues.apache.org/jira/browse/SOLR-7124
>             Project: Solr
>          Issue Type: New Feature
>          Components: SolrCloud
>    Affects Versions: 5.0
>            Reporter: Shawn Heisey
>            Priority: Minor
>             Fix For: 5.1
>
>
> As far as I know, there is no functionality included with Solr that can 
> delete a SolrCloud config in zookeeper.
> A "delconfig" command should be added to ZkCli and the zkcli script that can 
> accomplish this.  It should refuse to delete a config that is in use by any 
> current collection.



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

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

Reply via email to