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

Create collection API always has status 0

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 8.1
    • Component/s: None
    • Labels:
      None

      Description

      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?

        Attachments

        1. solrconfig.xml
          1 kB
          Ishan Chattopadhyaya
        2. SOLR-5970-test.patch
          4 kB
          Ishan Chattopadhyaya
        3. SOLR-5970.patch
          9 kB
          Jason Gerlowski
        4. SOLR-5970.patch
          13 kB
          Kesharee Nandan Vishwakarma
        5. SOLR-5970_branch_8x.patch
          13 kB
          Kesharee Nandan Vishwakarma
        6. schema.xml
          1.0 kB
          Ishan Chattopadhyaya
        7. bad.jar
          1 kB
          Ishan Chattopadhyaya

          Issue Links

            Activity

              People

              • Assignee:
                ichattopadhyaya Ishan Chattopadhyaya
                Reporter:
                abec Abraham Elmahrek
              • Votes:
                1 Vote for this issue
                Watchers:
                12 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: