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

addreplica API fails with incorrect error msg "cannot create collection"

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 4.10.3, 5.0
    • 5.3, 6.0
    • SolrCloud
    • None

    Description

      Steps to reproduce:

      1. Create 1 node solr cloud cluster
      2. Create collection 'test' with numShards=1&replicationFactor=1&maxShardsPerNode=1
      3. Call addreplica API:
        http://localhost:8983/solr/admin/collections?action=addreplica&collection=test&shard=shard1&wt=json 
        

      API fails with the following response:

      {
      responseHeader: {
      status: 400,
      QTime: 9
      },
      Operation ADDREPLICA caused exception:: "org.apache.solr.common.SolrException:org.apache.solr.common.SolrException: Cannot create collection test. No live Solr-instances",
      exception: {
      msg: "Cannot create collection test. No live Solr-instances",
      rspCode: 400
      },
      error: {
      msg: "Cannot create collection test. No live Solr-instances",
      code: 400
      }
      }
      

      Attachments

        1. SOLR-7172.patch
          10 kB
          Erick Erickson
        2. SOLR-7172.patch
          28 kB
          Erick Erickson
        3. SOLR-7172.patch
          29 kB
          Erick Erickson

        Activity

          People

            erickerickson Erick Erickson
            shalin Shalin Shekhar Mangar
            Votes:
            0 Vote for this issue
            Watchers:
            7 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: