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

Option to allow location override if solr.hdfs.home isn't set in backup repo

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Patch Available
    • Major
    • Resolution: Unresolved
    • None
    • None
    • Backup/Restore
    • None

    Description

      The Solr backup/restore API has an optional parameter for specifying the directory to backup to. However, the HdfsBackupRepository class doesn't use this location when creating the HDFS Filesystem object. Instead it uses the solr.hdfs.home setting configured in solr.xml. This functionally means that the backup location, which can be passed to the API call dynamically, is limited by the static home directory defined in solr.xml. This requirement means that if the solr.hdfs.home path and backup location don't share the same URI scheme and hostname, the backup will fail, even if the backup could otherwise have been written to the specified location successfully.

      This request is to allow the option of using the location setting to initialize the filesystem object.

      Attachments

        1. SOLR-14507.patch
          15 kB
          Haley Reeve
        2. SOLR-14507-2.patch
          26 kB
          Haley Reeve

        Activity

          People

            Unassigned Unassigned
            hreeve Haley Reeve
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated: