You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@doris.apache.org by yi...@apache.org on 2026/05/01 11:26:28 UTC
(doris) branch branch-4.1 updated: branch-4.1: [feat](snapshot) clone snapshot support absolute path file #57685 (#62874)
This is an automated email from the ASF dual-hosted git repository.
yiguolei pushed a commit to branch branch-4.1
in repository https://gitbox.apache.org/repos/asf/doris.git
The following commit(s) were added to refs/heads/branch-4.1 by this push:
new c5b986ad7f4 branch-4.1: [feat](snapshot) clone snapshot support absolute path file #57685 (#62874)
c5b986ad7f4 is described below
commit c5b986ad7f4b7e052032bc887e6e8f5717bed530
Author: github-actions[bot] <41...@users.noreply.github.com>
AuthorDate: Fri May 1 19:26:20 2026 +0800
branch-4.1: [feat](snapshot) clone snapshot support absolute path file #57685 (#62874)
Cherry-picked from #57685
Co-authored-by: meiyi <me...@selectdb.com>
---
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 319f0a4a606..54819c5afc2 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
@@ -216,7 +216,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: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org