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

Backup restore silently skips config restore if config with same name already exists (in cloud mode)

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 9.0, 9.1
    • main (10.0), 9.2
    • Backup/Restore
    • None

    Description

      We have tested this only in cloud mode.

       

      We have noticed when a backup is restored that contains a config with the same name as one that already exists in solr, the config restore is silently skipped (also when the configs are different but share the same name). I would expect that at least a warning appears in the logs when this happens. We saw that this happens with backups from local repositories as well as gcs repository (possibly others too).

      Steps to reproduce the issue:

      1. Start  solr in cloud mode
      2. Upload a config (any config, we tried with the default one)
      3. Create a collection with the config
      4. Create a backup
      5. Delete collection in UI
      6. Change the config either in backup or in solr (we added an additional comment)
      7.  Restore collection
      8. Have a look that after restore the old solr config has remained and the restored collection is using it. At the same time, the config from the backup has been ignored and no warning was produced whatsoever.

      Attachments

        Issue Links

          Activity

            People

              krisden Kevin Risden
              almoser Albert Moser
              Votes:
              2 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 50m
                  50m