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

Replicas failed to be deleted can overwrite replicas of recreated collections

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: 7.0
    • Fix Version/s: None
    • Component/s: SolrCloud
    • Labels:
      None

      Description

      When a replica comes up that was deleted from ZK while it was gone, it can replace replicas in ZK if the collection an core names are equal.
      Reproduction:

      1. Create collection1 with 1 shard, 2 replicas on node1 and node2
      2. Shut down node2
      3. Delete collection1
      4. Create collection1 on node1 and node3
      5. Start node2

      Expected:
      node2 will not initialize node as it is not assigned to in ZK (legacyCloud=false)
      Actual:
      node2 will overwrite the baseurl in state.json for one of the replicas as the coreNodeName and the collection name will match the core it has.

      Note: SOLR-7248 introduced a baseurl comparison which was removed in SOLR-10279.

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              manokovacs Mano Kovacs
            • Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated: