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

nrt replicas is always 1 when not specified

    XMLWordPrintableJSON

Details

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

    Description

      I created 1 2 shard X 2 replica collection . Here's the log entry for it

      2017-11-27 06:43:47.071 INFO  (qtp159259014-22) [   ] o.a.s.h.a.CollectionsHandler Invoked Collection Action :create with params replicationFactor=2&routerName=compositeId&collection.configName=_default&maxShardsPerNode=2&name=test_recovery&router.name=compositeId&action=CREATE&numShards=2&wt=json&_=1511764995711 and sendToOCPQueue=true
      

      And then when I look at the state.json file I see nrtReplicas is set to 1. Any combination of numShards and replicationFactor without explicitly specifying the "nrtReplicas" param puts the "nrtReplicas" as 1 instead of using the replicationFactor value

      {"test_recovery":{
          "pullReplicas":"0",
          "replicationFactor":"2",
      ...
          "nrtReplicas":"1",
          "tlogReplicas":"0",
      ..
      

      Attachments

        1. SOLR-11676.patch
          11 kB
          Varun Thacker
        2. SOLR-11676.patch
          8 kB
          Varun Thacker
        3. SOLR-11676.patch
          5 kB
          Varun Thacker
        4. SOLR-11676.patch
          2 kB
          Varun Thacker
        5. SOLR-11676.patch
          2 kB
          Amrit Sarkar

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved: