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

DELETEREPLICA and DELETENODE commands should prevent data loss when replicationFactor==1

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 6.6, 6.7, 7.0
    • Fix Version/s: 7.0, master (8.0)
    • Component/s: None
    • Security Level: Public (Default Security Level. Issues are Public)
    • Labels:
      None

      Description

      There should be some level of protection against inadvertent data loss when issuing these commands when replicationFactor is 1 - deleting a node or a replica in this case will be equivalent to completely deleting some shards.

      This is further complicated by the replica types - there could be still remaining replicas after the operation, but if they are all of PULL type then none of them will ever become a shard leader.

      We could require that the command should fail in such case unless a boolean option "force==true" is specified.

        Attachments

          Activity

            People

            • Assignee:
              ab Andrzej Bialecki
              Reporter:
              ab Andrzej Bialecki
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: