You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "Erick Erickson (JIRA)" <ji...@apache.org> on 2015/07/09 00:13:04 UTC

[jira] [Commented] (SOLR-7172) addreplica API fails with incorrect error msg "cannot create collection"

    [ https://issues.apache.org/jira/browse/SOLR-7172?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14619473#comment-14619473 ] 

Erick Erickson commented on SOLR-7172:
--------------------------------------

[~shalinmangar] I happen to be in this code for another JIRA, if I find this should I just fix it or are you already working on it?

> addreplica API fails with incorrect error msg "cannot create collection"
> ------------------------------------------------------------------------
>
>                 Key: SOLR-7172
>                 URL: https://issues.apache.org/jira/browse/SOLR-7172
>             Project: Solr
>          Issue Type: Bug
>          Components: SolrCloud
>    Affects Versions: 4.10.3, 5.0
>            Reporter: Shalin Shekhar Mangar
>            Assignee: Shalin Shekhar Mangar
>             Fix For: 5.2, Trunk
>
>
> Steps to reproduce:
> # Create 1 node solr cloud cluster
> # Create collection 'test' with numShards=1&replicationFactor=1&maxShardsPerNode=1
> # Call addreplica API:
> {code}
> http://localhost:8983/solr/admin/collections?action=addreplica&collection=test&shard=shard1&wt=json 
> {code}
> API fails with the following response:
> {code}
> {
> responseHeader: {
> status: 400,
> QTime: 9
> },
> Operation ADDREPLICA caused exception:: "org.apache.solr.common.SolrException:org.apache.solr.common.SolrException: Cannot create collection test. No live Solr-instances",
> exception: {
> msg: "Cannot create collection test. No live Solr-instances",
> rspCode: 400
> },
> error: {
> msg: "Cannot create collection test. No live Solr-instances",
> code: 400
> }
> }
> {code}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org