Skip to content

Apache Lucene open-source search software

SOLR-9444: Fix path usage for cloud backup/restore Merge branch 'SOLR-9444_fix' of https://github.com/hgadre/lucene-solr This closes #74

Uwe Schindlerd9c0f2c6b91b
diff --cc solr/CHANGES.txt
index b22ea5d08dc,adca63e1671..3f1b8a5ee83
--- a/solr/CHANGES.txt
+++ b/solr/CHANGES.txt
@@@ -103,8 -103,6 +103,10 @@@ Bug Fixe
* SOLR-9461: DELETENODE, REPLACENODE should pass down the 'async' param to subcommands (shalin, noble)
+* SOLR-9319: DELETEREPLICA can accept a 'count' and remove appropriate replicas (Nitin Sharma, noble )
+
++* SOLR-9444: Fix path usage for cloud backup/restore. (Hrishikesh Gadre, Uwe Schindler, Varun Thacker)
++
Optimizations
----------------------
diff --cc solr/core/src/test/org/apache/solr/cloud/TestLocalFSCloudBackupRestore.java
index db6891349f5,da8e767db02..c0db46e1565
--- a/solr/core/src/test/org/apache/solr/cloud/TestLocalFSCloudBackupRestore.java
+++ b/solr/core/src/test/org/apache/solr/cloud/TestLocalFSCloudBackupRestore.java
@@@ -30,6 -31,13 +31,13 @@@ public class TestLocalFSCloudBackupRest
configureCluster(NUM_SHARDS)// nodes
.addConfig("conf1", TEST_PATH().resolve("configsets").resolve("cloud-minimal").resolve("conf"))
.configure();
+
+ boolean whitespacesInPath = random().nextBoolean();
+ if (whitespacesInPath) {
- backupLocation = createTempDir("my backup").toFile().getAbsolutePath();
++ backupLocation = createTempDir("my backup").toAbsolutePath().toString();
+ } else {
- backupLocation = createTempDir("mybackup").toFile().getAbsolutePath();
++ backupLocation = createTempDir("mybackup").toAbsolutePath().toString();
+ }
}
@Override