SOLR-4741: Deleting a collection should set DELETE_DATA_DIR to true.

git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1470255 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Mark Robert Miller 2013-04-21 02:42:05 +00:00
parent 328cb6c744
commit 8aa09aeca0
2 changed files with 7 additions and 0 deletions

View File

@ -54,6 +54,12 @@ Upgrading from Solr 4.3.0
Detailed Change List
----------------------
Bug Fixes
----------------------
* SOLR-4741: Deleting a collection should set DELETE_DATA_DIR to true.
(Mark Miller)
Other Changes
----------------------

View File

@ -167,6 +167,7 @@ public class OverseerCollectionProcessor implements Runnable, ClosableThread {
ModifiableSolrParams params = new ModifiableSolrParams();
params.set(CoreAdminParams.ACTION, CoreAdminAction.UNLOAD.toString());
params.set(CoreAdminParams.DELETE_INSTANCE_DIR, true);
params.set(CoreAdminParams.DELETE_DATA_DIR, true);
collectionCmd(zkStateReader.getClusterState(), message, params, results, null);
ZkNodeProps m = new ZkNodeProps(Overseer.QUEUE_OPERATION,