You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@solr.apache.org by "Cassandra Targett (Jira)" <ji...@apache.org> on 2021/08/13 22:45:00 UTC
[jira] [Resolved] (SOLR-11546) Improve error response from
collection api calls
[ https://issues.apache.org/jira/browse/SOLR-11546?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Cassandra Targett resolved SOLR-11546.
--------------------------------------
Resolution: Won't Fix
maxShardsPerNode has been removed so that helped shorten up the error message here.
> Improve error response from collection api calls
> ------------------------------------------------
>
> Key: SOLR-11546
> URL: https://issues.apache.org/jira/browse/SOLR-11546
> Project: Solr
> Issue Type: Bug
> Reporter: Varun Thacker
> Priority: Major
>
> I ran this API call : {{http://localhost:8983/solr/admin/collections?action=CREATE&name=test_tlog&numShards=2&tlogReplicas=2}} and forgot to add maxShardsPerNode . The response looks overly verbose and repetitive
> {code}
> {
> "responseHeader":{
> "status":400,
> "QTime":242},
> "Operation create caused exception:":"org.apache.solr.common.SolrException:org.apache.solr.common.SolrException: Cannot create collection test_tlog. Value of maxShardsPerNode is 1, and the number of nodes currently live or live and part of your createNodeSet is 2. This allows a maximum of 2 to be created. Value of numShards is 2, value of nrtReplicas is 0, value of tlogReplicas is 2 and value of pullReplicas is 0. This requires 4 shards to be created (higher than the allowed number)",
> "exception":{
> "msg":"Cannot create collection test_tlog. Value of maxShardsPerNode is 1, and the number of nodes currently live or live and part of your createNodeSet is 2. This allows a maximum of 2 to be created. Value of numShards is 2, value of nrtReplicas is 0, value of tlogReplicas is 2 and value of pullReplicas is 0. This requires 4 shards to be created (higher than the allowed number)",
> "rspCode":400},
> "error":{
> "metadata":[
> "error-class","org.apache.solr.common.SolrException",
> "root-error-class","org.apache.solr.common.SolrException"],
> "msg":"Cannot create collection test_tlog. Value of maxShardsPerNode is 1, and the number of nodes currently live or live and part of your createNodeSet is 2. This allows a maximum of 2 to be created. Value of numShards is 2, value of nrtReplicas is 0, value of tlogReplicas is 2 and value of pullReplicas is 0. This requires 4 shards to be created (higher than the allowed number)",
> "code":400}}
> {code}
--
This message was sent by Atlassian Jira
(v8.3.4#803005)
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@solr.apache.org
For additional commands, e-mail: issues-help@solr.apache.org