You are viewing a plain text version of this content. The canonical link for it is here.
Posted to solr-user@lucene.apache.org by Alexandre Drouin <al...@orckestra.com> on 2016/07/28 14:06:15 UTC

Unable to create core

Hi,

While I was testing I deleted my collection (customer) using the collection API and this step succeeded, however if I try to create a new collection using the same name I get the following error: Core with name 'customer_shard1_replica1' already exists."
I am using SolrCloud 6.0.1 and ZK 3.4.8.

How can I remove the core that should have been deleted when I removed my collection?

Thanks,
Alexandre Drouin

RE: Unable to create core

Posted by Alexandre Drouin <al...@orckestra.com>.
My deleted collection is not present in the Admin UI.  I was able to fix my problem by deleting the core using the Core API and its unload command.


Alexandre Drouin


-----Original Message-----
From: Alexandre Rafalovitch [mailto:arafalov@gmail.com] 
Sent: July 28, 2016 10:17 AM
To: solr-user <so...@lucene.apache.org>
Subject: Re: Unable to create core
Importance: High

What do you see in the Admin UI? Is it there? Also, deleting the core
- I believe - still leaves the underlying directory on the filesystem in place. So perhaps it is actually complaining about the leftover filesystem directory when you try to create a new core with the same name/location. Check the filesystem for that directory (customer_shard1_replica1).

Regards,
   Alex.
----
Newsletter and resources for Solr beginners and intermediates:
http://www.solr-start.com/


On 29 July 2016 at 00:06, Alexandre Drouin <al...@orckestra.com> wrote:
> Hi,
>
> While I was testing I deleted my collection (customer) using the collection API and this step succeeded, however if I try to create a new collection using the same name I get the following error: Core with name 'customer_shard1_replica1' already exists."
> I am using SolrCloud 6.0.1 and ZK 3.4.8.
>
> How can I remove the core that should have been deleted when I removed my collection?
>
> Thanks,
> Alexandre Drouin

Re: Unable to create core

Posted by Alexandre Rafalovitch <ar...@gmail.com>.
What do you see in the Admin UI? Is it there? Also, deleting the core
- I believe - still leaves the underlying directory on the filesystem
in place. So perhaps it is actually complaining about the leftover
filesystem directory when you try to create a new core with the same
name/location. Check the filesystem for that directory
(customer_shard1_replica1).

Regards,
   Alex.
----
Newsletter and resources for Solr beginners and intermediates:
http://www.solr-start.com/


On 29 July 2016 at 00:06, Alexandre Drouin
<al...@orckestra.com> wrote:
> Hi,
>
> While I was testing I deleted my collection (customer) using the collection API and this step succeeded, however if I try to create a new collection using the same name I get the following error: Core with name 'customer_shard1_replica1' already exists."
> I am using SolrCloud 6.0.1 and ZK 3.4.8.
>
> How can I remove the core that should have been deleted when I removed my collection?
>
> Thanks,
> Alexandre Drouin