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

2015-07-10 Thread ASF subversion and git services (JIRA)

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

ASF subversion and git services commented on SOLR-7172:
---

Commit 1690348 from [~erickoerickson] in branch 'dev/branches/branch_5x'
[ https://svn.apache.org/r1690348 ]

SOLR-7172: addreplica API fails with incorrect error msg 'cannot create 
collection'

> 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: Erick Erickson
> Fix For: 5.3, Trunk
>
> Attachments: SOLR-7172.patch, SOLR-7172.patch, SOLR-7172.patch
>
>
> 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-unsubscr...@lucene.apache.org
For additional commands, e-mail: dev-h...@lucene.apache.org



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

2015-07-10 Thread ASF subversion and git services (JIRA)

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

ASF subversion and git services commented on SOLR-7172:
---

Commit 1690341 from [~erickoerickson] in branch 'dev/trunk'
[ https://svn.apache.org/r1690341 ]

SOLR-7172: addreplica API fails with incorrect error msg 'cannot create 
collection'

> 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: Erick Erickson
> Fix For: 5.2, Trunk
>
> Attachments: SOLR-7172.patch, SOLR-7172.patch, SOLR-7172.patch
>
>
> 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-unsubscr...@lucene.apache.org
For additional commands, e-mail: dev-h...@lucene.apache.org



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

2015-07-10 Thread Erick Erickson (JIRA)

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

Erick Erickson commented on SOLR-7172:
--

I'll have a new patch up today/tomorrow. Fixes up a precommit problem 
(String.format) and closes a test resource, no real functional changes.


> 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: Erick Erickson
> Fix For: 5.2, Trunk
>
> Attachments: SOLR-7172.patch, SOLR-7172.patch
>
>
> 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-unsubscr...@lucene.apache.org
For additional commands, e-mail: dev-h...@lucene.apache.org



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

2015-07-09 Thread Noble Paul (JIRA)

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

Noble Paul commented on SOLR-7172:
--

bq.It seems to me that nodeList is the wrong thing to be looking at as well, 
we've already collected a list of nodes we could put additional replicas on

Yes. your observation is correct. {{nodeNameVsShardCount}} has the appropriate 
nodes and it should be used to arrive at  {{maxCoresAllowedToCreate}}  

bq.How this interacts with rules is a mystery to me though

Rules actually ignores the {{maxShardsPerNode}} param. It totally relies on the 
rules to identify the nodes

While you are working on this please rename the class {{Node}} to something 
like {{ReplicaCount}} or whatever is suitable 

> 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
>
> Attachments: SOLR-7172.patch
>
>
> 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-unsubscr...@lucene.apache.org
For additional commands, e-mail: dev-h...@lucene.apache.org



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

2015-07-08 Thread Shalin Shekhar Mangar (JIRA)

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

Shalin Shekhar Mangar commented on SOLR-7172:
-

Please go ahead!

> 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-unsubscr...@lucene.apache.org
For additional commands, e-mail: dev-h...@lucene.apache.org



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

2015-07-08 Thread Erick Erickson (JIRA)

[ 
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-unsubscr...@lucene.apache.org
For additional commands, e-mail: dev-h...@lucene.apache.org