Uploaded image for project: 'Solr'
  1. Solr
  2. SOLR-6440

Core status should throw an error if core doesn't exist

    XMLWordPrintableJSON

Details

    Description

      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

      <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>
      

      Instead, it would be good to return an error message stating that the core doesn't exist.
      e.g

      <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>
      

      Attachments

        1. SOLR-6440.patch
          4 kB
          Vamsee K. Yarlagadda

        Issue Links

          Activity

            People

              Unassigned Unassigned
              vamsee Vamsee K. Yarlagadda
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated: