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

Restore collection does not respect user specified replicationFactor

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 7.5, 8.0
    • None

    Description

      When restoring a collection we can pass in the replicationFactor 

      However while restoring the collection we don't make use of this param and end up using whatever is present  as the nrtReplicas key in the state.json

       

      int numNrtReplicas = getInt(message, NRT_REPLICAS, backupCollectionState.getNumNrtReplicas(), 0);
      if (numNrtReplicas == 0) {
        numNrtReplicas = getInt(message, REPLICATION_FACTOR, backupCollectionState.getReplicationFactor(), 0);
      }

      The tests didn't catch this as the create collection call from SolrJ sets nrtReplicas = replicationFactor and then we never restore with a different replicationFactor

      Attachments

        1. SOLR-12489.patch
          18 kB
          Varun Thacker

        Issue Links

          Activity

            People

              varun Varun Thacker
              varun Varun Thacker
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: