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

Impossible to delete a collection with the same name as an existing alias

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Blocker
    • Resolution: Fixed
    • 8.1, 8.1.1
    • 8.2
    • None
    • None

    Description

      SOLR-13262 changed the behavior of most collection admin commands so that they always resolve aliases by default. In most cases this is desireable behavior but it also prevents executing commands on the collections that have the same name as an existing alias (which usually points to a different collection).

      This behavior also breaks the REINDEXCOLLECTION command with removeSource=true, which can also lead to data loss.

      This issue can be resolved by adding either an opt-in or opt-out flag to the collection admin commands that specifies whether the command should attempt resolving the provided name as an alias first. From the point of view of ease of use this could be an opt-out option, from the point of view of data safety this could be an opt-in option.

      Attachments

        1. SOLR-13583.patch
          54 kB
          Andrzej Bialecki
        2. SOLR-13583.patch
          55 kB
          Andrzej Bialecki

        Issue Links

          Activity

            People

              ab Andrzej Bialecki
              ab Andrzej Bialecki
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: