lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Alexandre Drouin <>
Subject RE: Getting "collection already exists" when creating collection in admin UI
Date Fri, 12 Aug 2016 17:10:44 GMT
Hi Esther-Melaine,

The collection exists in Zookeeper under the /collections node and I can see the shardX_replicaX
folders under $SOLR_HOME/server/solr of both servers.

I was not able to replicate the issue using the collection API.  Here are the logs where I
added the 'MyNewerNode'

I took a closer look at the admin UI and here are my findings:
  - In Chrome's devtool I can see the first create request
  - After 10 seconds the request getting aborted and a second create request is sent to the
  - In Fiddler I can see that the first request completes successfully without any issues.
 The second request is sent a few seconds before the first one ends so it looks like a admin
UI issue.

Is it possible that the admin UI has some kind of TTL for requests set to 10 seconds?

You mentioned something about the nodes going into recovery.  Any idea how I can fix this

My development environment (if it makes a difference):
  - OS: Windows
  - 2 Solr 6.1 nodes using SolrCloud.  They both are running on the same server using different
  - Zookeeper 3.4.8

Alexandre Drouin

-----Original Message-----
From: Esther-Melaine Quansah [] 
Sent: August 12, 2016 10:46 AM
Subject: Re: Getting "collection already exists" when creating collection in admin UI
Importance: High

Hi Alexandre,

The question here is why the create action is called twice. You’re getting that “collection
already exists” error after the second action is called. Can you verify if MyNewNode exists
in /collections in ZK or on the machines running Solr at $SOLR_HOME/server/solr/ Your logs
show a lot of issues around the overseer and it looks like those nodes are going into recovery
pretty frequently. Can you replicate this issue by creating a collection through the API (not
through the UI): 



> On Aug 12, 2016, at 10:05 AM, Alexandre Drouin <>
> Hello,
> I am running SolrCloud with 2 nodes (Solr 6.1 with SSL and basic auth) and with one Zookeeper
node (for development purposes) and when I try to create a new collection in the admin UI
with 'replicationFactor=2' I get a  "Connection to Solr lost" message and another message
telling me " collection already exists: MyNewNode".  I made sure that a collection with the
same name does not exists and the issue does not appear with a replication factor of 1.  
> While debugging I saw that the create action is called twice with the 
> following parameters: 
> /solr/admin/collections?_=1471010473184&action=CREATE&collection.confi
> gName=DefaultConfig&maxShardsPerNode=1&name=aaa&numShards=1&replicatio
> nFactor=2&
> Can anyone replicate this issue?  I have not found it in JIRA.
> Below is the relevant log (if useful) and I posted the full logs here 
> 63549 ERROR (OverseerThreadFactory-5-thread-5-processing-n:orc-dev-solr-cd.local:8444_solr)
[   ] o.a.s.c.OverseerCollectionMessageHandler Collection: MyNewNode operation: create failed:org.apache.solr.common.SolrException:
collection already exists: MyNewNode
> 	at
> 	at
> 	at$
> 	at org.apache.solr.common.util.ExecutorUtil$MDCAwareThreadPoolExecutor.lambda$execute$22(
> 	at java.util.concurrent.ThreadPoolExecutor.runWorker(
> 	at java.util.concurrent.ThreadPoolExecutor$
> 	at
> Thanks,
> Alexandre Drouin

View raw message