This is an automated email from the ASF dual-hosted git repository.
dataroaring pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/doris.git
The following commit(s) were added to refs/heads/master by this push:
new 4809cf596d9 [feat](snapshot) clone snapshot support absolute path file
(#57685)
4809cf596d9 is described below
commit 4809cf596d9ee0c4079c76bc89214369874656e1
Author: meiyi <[email protected]>
AuthorDate: Wed Nov 5 01:55:05 2025 +0800
[feat](snapshot) clone snapshot support absolute path file (#57685)
---
fe/fe-core/src/main/java/org/apache/doris/DorisFE.java | 7 ++++++-
1 file changed, 6 insertions(+), 1 deletion(-)
diff --git a/fe/fe-core/src/main/java/org/apache/doris/DorisFE.java
b/fe/fe-core/src/main/java/org/apache/doris/DorisFE.java
index 787989be8c9..d0e8b7fe5bc 100755
--- a/fe/fe-core/src/main/java/org/apache/doris/DorisFE.java
+++ b/fe/fe-core/src/main/java/org/apache/doris/DorisFE.java
@@ -188,7 +188,12 @@ public class DorisFE {
"software.amazon.awssdk.http.urlconnection.UrlConnectionSdkHttpService");
if (cmdLineOpts.getClusterSnapshotPath() != null) {
- Env.getCurrentEnv().setClusterSnapshotFile(dorisHomeDir + "/"
+ cmdLineOpts.getClusterSnapshotPath());
+ String clusterSnapshotPath =
cmdLineOpts.getClusterSnapshotPath();
+ if (!clusterSnapshotPath.startsWith("/")) {
+ // relative path
+ clusterSnapshotPath = dorisHomeDir + "/" +
clusterSnapshotPath;
+ }
+
Env.getCurrentEnv().setClusterSnapshotFile(clusterSnapshotPath);
}
// init catalog and wait it be ready
Env.getCurrentEnv().initialize(args);
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]