You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "Kesharee Nandan Vishwakarma (JIRA)" <ji...@apache.org> on 2019/04/26 20:19:01 UTC

[jira] [Comment Edited] (SOLR-5970) Create collection API always has status 0

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

Kesharee Nandan Vishwakarma edited comment on SOLR-5970 at 4/26/19 8:18 PM:
----------------------------------------------------------------------------

[~ichattopadhyaya] I have added a patch for branch_8x improving upon the previous patch and added more explicit test case as well. Let me know if this is good enough for 8.1, we can pick up broader changes for collection admin api in related tasks.

[~gerlowskija] Response format looks good, its consistent with other failure responses. Also suggest changes if any.

E.g: 
{code:java}
{"responseHeader": {"status": 400,"QTime": 138},"Operation create caused exception:": "org.apache.solr.common.SolrException:org.apache.solr.common.SolrException: Can not find the specified config set: ba","exception": {"msg": "Can not find the specified config set: ba","rspCode": 400},"error": {"metadata": ["error-class","org.apache.solr.common.SolrException","root-error-class","org.apache.solr.common.SolrException"],"msg": "Can not find the specified config set: ba","code": 400}}
{code}


was (Author: keshareenv):
[~ichattopadhyaya] I have added a patch for branch_8x improving upon the previous patch and added more explicit test case as well. Let me know if this is good enough for 8.1, we can pick up broader changes for collection admin api in related tasks.

[~gerlowskija] Please suggest changes if any.

> Create collection API always has status 0
> -----------------------------------------
>
>                 Key: SOLR-5970
>                 URL: https://issues.apache.org/jira/browse/SOLR-5970
>             Project: Solr
>          Issue Type: Bug
>            Reporter: Abraham Elmahrek
>            Assignee: Jason Gerlowski
>            Priority: Major
>         Attachments: SOLR-5970-test.patch, SOLR-5970.patch, SOLR-5970_branch_8x.patch, bad.jar, schema.xml, solrconfig.xml
>
>
> The responses below are from a successful create collection API (https://cwiki.apache.org/confluence/display/solr/Collections+API#CollectionsAPI-CreateormodifyanAliasforaCollection) call and an unsuccessful create collection API call. It seems the 'status' is always 0.
> Success:
> {u'responseHeader': {u'status': 0, u'QTime': 4421}, u'success': {u'': {u'core': u'test1_shard1_replica1', u'responseHeader': {u'status': 0, u'QTime': 3449}}}}
> Failure:
> {u'failure': 
>   {u'': u"org.apache.solr.client.solrj.impl.HttpSolrServer$RemoteSolrException:Error CREATEing SolrCore 'test43_shard1_replica1': Unable to create core: test43_shard1_replica1 Caused by: Could not find configName for collection test43 found:[test1]"},
>  u'responseHeader': {u'status': 0, u'QTime': 17149}
> }
> It seems like the status should be 400 or something similar for an unsuccessful attempt?



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

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