tracker issue : CF-4185055

select a category, or use search below
(searches all categories and all time range)

[ANeff] Bug for: cfcollection action="create" throws HTTP 400 on initial run for each collection

| View in Tracker

Status/Resolution/Reason: Closed/Withdrawn/CannotReproduce

Reporter/Name(from Bugbase): Aaron Neff / Aaron Neff (Aaron Neff)

Created: 08/29/2016

Components: Text Search, Solr Integration

Versions: 2016

Failure Type:

Found In Build/Fixed In Build: CF2016_Update2 /

Priority/Frequency: Major / Some users will encounter

Locale/System: English / Win All

Vote Count: 0

cfcollection action="create" throws HTTP 400 on initial run for each collection

Steps to reproduce:
1) Run cfcollection action="create" to create a new (never previously existing) collection
2) See exception: "Unable to create Solr collection mycollection. An error occurred while creating the collection: org.apache.solr.client.solrj.impl.HttpSolrClient$RemoteSolrException. Check the Solr logs for more detail."
3) See HTTP status 400 logged to C:\ColdFusion2016\cfusion\jetty\logs\2016_08_29.request.log for the request
4) Repeat step #1
5) See collection is created successfully

Now, repeat the above steps for yet another (never previously existing) collection. See the result is the same.

Now, delete the collections (and delete the collection files on disk), and repeat the above steps. See no error is thrown.

Thus, the issue occurs for each collection, but only on the first run of cfcollection.

----------------------------- Additional Watson Details -----------------------------

Watson Bug ID:	4185055

External Customer Info:
External Company:  
External Customer Name: Aaron Neff
External Customer Email:



Aaron, Thanks for reporting this. I am unable to observe this issue with b.2016.0.03.299963 / Win 7x64. Can you pls share the update level of the server, the OS it is hosted on and if possible the relevant extract from the jetty logs and maybe even the cfml code with which you are creating the collection. I'm simply trying : <cfcollection action="CREATE" collection="#col_name#" engine="solr"> and I see see the following (at http://localhost:8989/solr/#/~logging)" 8/30/2016, 10:20:14 PM WARN null SolrCore [aaajukecol2] Solr index directory 'C:\ColdFusion2016\cfusion\jetty\multicore\collections\aaajukecol2\data\index' doesn't exist. Creating new index...
Comment by Piyush K.
1927 | August 30, 2016 11:27:00 AM GMT