You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "Vamsee Yarlagadda (JIRA)" <ji...@apache.org> on 2014/08/27 07:11:58 UTC

[jira] [Updated] (SOLR-6440) Core status should throw an error if core doesn't exist

     [ https://issues.apache.org/jira/browse/SOLR-6440?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Vamsee Yarlagadda updated SOLR-6440:
------------------------------------

    Attachment: SOLR-6440.patch

Here is the first revision of the patch. 

Note: This patch will still honor the https://issues.apache.org/jira/browse/SOLR-3634 for reporting back info about initialization failures

> Core status should throw an error if core doesn't exist
> -------------------------------------------------------
>
>                 Key: SOLR-6440
>                 URL: https://issues.apache.org/jira/browse/SOLR-6440
>             Project: Solr
>          Issue Type: Bug
>          Components: SearchComponents - other
>    Affects Versions: 5.0
>            Reporter: Vamsee Yarlagadda
>            Priority: Minor
>         Attachments: SOLR-6440.patch
>
>
> Current version of Core STATUS returns an empty response if requested core doesn't exist.
> e.q:
> http://localhost:8900/solr/admin/cores?action=STATUS&core=abc
> {code}
> <response>
> <lst name="responseHeader">
>   <int name="status">0</int>
>   <int name="QTime">1</int>
>   </lst><lst name="initFailures"/>
>   <lst name="status">
>   <lst name="abc"/>
> </lst>
> </response>
> {code}
>  Instead, it would be good to return an error message stating that the core doesn't exist.
> e.g
> {code}
> <response>
> <lst name="responseHeader">
>   <int name="status">400</int>
>   <int name="QTime">27</int>
>   </lst>
>   <lst name="initFailures"/>
>   <lst name="error">
>      <str name="msg">Core [abc] does not exist</str>
>      <int name="code">400</int>
>   </lst>
> </response>
> {code}



--
This message was sent by Atlassian JIRA
(v6.2#6252)

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