This is an automated email from the ASF dual-hosted git repository.

yiguolei pushed a commit to branch branch-4.0
in repository https://gitbox.apache.org/repos/asf/doris.git


The following commit(s) were added to refs/heads/branch-4.0 by this push:
     new 21f280b9bc9 branch-4.0: [fix](cloud) cloud_unique_id is requried when 
load from cluster snapshot #59820 (#59997)
21f280b9bc9 is described below

commit 21f280b9bc91bd38feeb7a9ecc2a7ab3f734bffc
Author: github-actions[bot] 
<41898282+github-actions[bot]@users.noreply.github.com>
AuthorDate: Sun Jan 18 18:23:11 2026 +0800

    branch-4.0: [fix](cloud) cloud_unique_id is requried when load from cluster 
snapshot #59820 (#59997)
    
    Cherry-picked from #59820
    
    Co-authored-by: walter <[email protected]>
---
 .../src/main/java/org/apache/doris/cloud/catalog/CloudEnv.java       | 5 +++++
 1 file changed, 5 insertions(+)

diff --git 
a/fe/fe-core/src/main/java/org/apache/doris/cloud/catalog/CloudEnv.java 
b/fe/fe-core/src/main/java/org/apache/doris/cloud/catalog/CloudEnv.java
index 7c992394797..65786c29976 100644
--- a/fe/fe-core/src/main/java/org/apache/doris/cloud/catalog/CloudEnv.java
+++ b/fe/fe-core/src/main/java/org/apache/doris/cloud/catalog/CloudEnv.java
@@ -122,6 +122,11 @@ public class CloudEnv extends Env {
 
     @Override
     public void initialize(String[] args) throws Exception {
+        if (clusterSnapshotFile != null && 
Strings.isNullOrEmpty(Config.cloud_unique_id)) {
+            throw new UserException("cloud_unique_id must be specified in 
fe.conf "
+                    + "when load from cluster snapshot in cloud mode");
+        }
+
         if (Strings.isNullOrEmpty(Config.cloud_unique_id) && Config.cluster_id 
== -1) {
             throw new UserException("cluster_id must be specified in fe.conf 
if deployed "
                                     + "in cloud mode, because FE should known 
to which it belongs");


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to