Details
-
Improvement
-
Status: Patch Available
-
Major
-
Resolution: Unresolved
-
None
-
None
-
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.