You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "Evan Sayer (JIRA)" <ji...@apache.org> on 2016/08/23 16:12:20 UTC
[jira] [Created] (SOLR-9433) SolrCore clean-up logic uses incorrect
path to delete dataDir on failure to create a core
Evan Sayer created SOLR-9433:
--------------------------------
Summary: SolrCore clean-up logic uses incorrect path to delete dataDir on failure to create a core
Key: SOLR-9433
URL: https://issues.apache.org/jira/browse/SOLR-9433
Project: Solr
Issue Type: Bug
Security Level: Public (Default Security Level. Issues are Public)
Affects Versions: 5.5.2
Reporter: Evan Sayer
When a core fails to be created for some reason (errant schema or solrconfig etc.), {{SolrCore.deleteUnloadedCore()}} is called from {{unload()}} in CoreContainer in order to clean-up the possibly left-over {{dataDir}} and {{instanceDir}}. The problem is that the CoreDescriptor passed to {{SolrCore.deleteUnloadedCore()}} will have its value for {{dataDir}} set to just "data/" unless an explicit {{dataDir}} was specified by the user in the request to create the core, leading to an attempt to delete simply {{"data/"}}, which presumably resolves to a non-existent directory under Solr's home directory or some such.
--
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