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

The MOVEREPLICA API ignores replica type and always adds 'nrt' replicas

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: master (9.0), 8.3
    • Component/s: None
    • Labels:
      None

      Description

      MOVEREPLICA API in Solr creates NRT type replica in the target node always,
      no matter what type the source replica is. This leads to an inconsistent cluster state.

      MoveReplicaCmd

          ZkNodeProps addReplicasProps = new ZkNodeProps(
              COLLECTION_PROP, coll.getName(),
              SHARD_ID_PROP, slice.getName(),
              CoreAdminParams.NODE, targetNode,
              CoreAdminParams.NAME, newCoreName);
      

        Attachments

        1. SOLR-13843.patch
          9 kB
          Amrit Sarkar

          Issue Links

            Activity

              People

              • Assignee:
                shalin Shalin Shekhar Mangar
                Reporter:
                sarkaramrit2@gmail.com Amrit Sarkar
              • Votes:
                0 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: