Status/Resolution/Reason: Closed/Fixed/Fixed
Reporter/Name(from Bugbase): bobo beebop / bobo beebop ()
Created: 10/10/2017
Components: Text Search, Solr Integration
Versions: 2016,2018
Failure Type: Incorrectly functioning
Found In Build/Fixed In Build: ColdFusion 2016 Update 5 / 2018,0,02,313101
Priority/Frequency: Minor / All users will encounter
Locale/System: / Windows 8.1/64bit
Vote Count: 1
Problem Description:
After creating a deleting a collection multiple times creation fails.
Steps to Reproduce:
Run the following code. It crashes on line 5.
<cfcollection action="create" collection="FAKE_COLLECTION">
<cfcollection action="delete" collection="FAKE_COLLECTION">
<cfcollection action="create" collection="FAKE_COLLECTION">
<cfcollection action="delete" collection="FAKE_COLLECTION">
<cfcollection action="create" collection="FAKE_COLLECTION">
Actual Result:
The following error occurs:
Unable to create Solr collection fake_collection.
An error occurred while creating the collection:
org.apache.solr.client.solrj.impl.HttpSolrClient$RemoteSolrException. Check the Solr logs for more
detail.
In the Solr admin panel, this is logged:
Error CREATEing SolrCore 'fake_collection': Could not create a new core in E:\ColdFusion2016\cfusion\jetty\multicore\collections\fake_collection\as another core is already defined there
Note that when the collection is deleted the collection folder is not removed (i.e. <CF_ROOT>\cfusion\jetty\multicore\collections\fake_collection). This is true even if the collection is deleted from the CF Admin.
Expected Result:
The collection should be recreated.
Any Workarounds:
Delete the collection using cfcollection, then manually delete <CF_ROOT>\cfusion\jetty\multicore\collections\fake_collection.
Attachments:
Comments: