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

Add an onlyIfDown flag for DELETEREPLICA collections API command

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 5.0, 6.0
    • 5.0, 6.0
    • SolrCloud
    • None

    Description

      Having the DELETEREPLICA delete the index is scary for some situations, especially ones in which the operations people are taking more explicit control of the topology of their cluster. As we move towards ZK being the "one source of truth" and deleting replicas that then come back up, this is even scarier.

      I propose to have an optional flag onlyIfDown that remove the replica from the ZK cluster state if (and only if) the node was offline. Default value: false.

      Attachments

        1. SOLR-6482.patch
          5 kB
          Erick Erickson
        2. SOLR-6482.patch
          6 kB
          Erick Erickson
        3. SOLR-6482.patch
          4 kB
          Erick Erickson
        4. SOLR-6482-test.patch
          4 kB
          Erick Erickson

        Activity

          People

            erickerickson Erick Erickson
            erickerickson Erick Erickson
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: