lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Shalin Shekhar Mangar (JIRA)" <>
Subject [jira] [Updated] (SOLR-2610) Add an option to delete index through CoreAdmin UNLOAD action
Date Tue, 21 Jun 2011 11:07:47 GMT


Shalin Shekhar Mangar updated SOLR-2610:

    Attachment: SOLR-2610.patch

Patch adds a boolean "deleteIndex" parameter to core unload action.

There is a close hook interface in SolrCore but it is called before the update handler and
searcher(s) are closed so it cannot be used to delete the index.

* Changes the CloseHook interface to an abstract class with a preClose(SolrCore) and a postClose(SolrCore)
* Changed the usage of CloseHook in ReplicationHandler, SolrCoreTest
* CoreAdminHandler adds a closehook on receiving an unload action with deleteIndex=true
* Added tests for the new param

Since the CloseHook is used very sparingly, I think it is fine to change it to an abstract
class but if people feel strongly against it, we can find another way.

> Add an option to delete index through CoreAdmin UNLOAD action
> -------------------------------------------------------------
>                 Key: SOLR-2610
>                 URL:
>             Project: Solr
>          Issue Type: Improvement
>          Components: multicore
>            Reporter: Shalin Shekhar Mangar
>            Assignee: Shalin Shekhar Mangar
>            Priority: Minor
>             Fix For: 3.3, 4.0
>         Attachments: SOLR-2610.patch
> Right now, one can unload a Solr Core but the index files are left behind and consume
disk space. We should have an option to delete the index when unloading a core.

This message is automatically generated by JIRA.
For more information on JIRA, see:


To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message