Hi,

We have 5 shards with replication factor 2 (total 10 jvm instances). Our shards 
are named (shardid) shard1,shard2,shard3,shar4 and shar5 and collection name is 
collection1. When we execute this command:

curl --proxy '' 
"http://$HOST_NAME:8983/solr/admin/collections?action=SPLITSHARD&collection=collection1&shard=shard1";

We get this error:

<lst name="failure">
        
<str>org.apache.solr.client.solrj.impl.HttpSolrServer$RemoteSolrException:Error 
CREATEing SolrCore 'collection1_shard1_0_replica1': Core with same data dir 
'collection1' already exists.</str>
        
<str>org.apache.solr.client.solrj.impl.HttpSolrServer$RemoteSolrException:Error 
CREATEing SolrCore 'collection1_shard1_1_replica1': Core with same data dir 
'collection1' already exists.</str>
        
<str>org.apache.solr.client.solrj.impl.HttpSolrServer$RemoteSolrException:core 
not found:collection1_shard1_0_replica1</str>
        
<str>org.apache.solr.client.solrj.impl.HttpSolrServer$RemoteSolrException:core 
not found:collection1_shard1_1_replica1</str>
        
<str>org.apache.solr.client.solrj.impl.HttpSolrServer$RemoteSolrException:Server
 at http://$HOST:8983/solr returned non ok status:500, message:Server 
Error</str>
        
<str>org.apache.solr.client.solrj.impl.HttpSolrServer$RemoteSolrException:Server
 at http://$HOST:8983/solr returned non ok status:500, message:Server 
Error</str>
        
<str>org.apache.solr.client.solrj.impl.HttpSolrServer$RemoteSolrException:Server
 at http://$HOST:8983/solr returned non ok status:500, message:Server 
Error</str>
        
<str>org.apache.solr.client.solrj.impl.HttpSolrServer$RemoteSolrException:Error 
CREATEing SolrCore 'collection1_shard1_1_replica2': Unable to create core: 
collection1_shard1_1_replica2</str>
        
<str>org.apache.solr.client.solrj.impl.HttpSolrServer$RemoteSolrException:Error 
CREATEing SolrCore 'collection1_shard1_0_replica2': Core with same data dir 
'collection1' already exists.</str>
        
<str>org.apache.solr.client.solrj.impl.HttpSolrServer$RemoteSolrException:core 
not found:collection1_shard1_0_replica1</str>
        
<str>org.apache.solr.client.solrj.impl.HttpSolrServer$RemoteSolrException:core 
not found:collection1_shard1_1_replica1</str>
</lst>
</response>

Does the collection name has to be different than existing collection? If yes, 
why is that? We're not creating a new collection. We just want to split 
existing shard. 

Thanks much!

Reply via email to