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

gavinchou 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 95bafe42b26 [fix](cloud) cloud_unique_id is requried when load from 
cluster snapshot (#59820)
95bafe42b26 is described below

commit 95bafe42b26bf6431a6c6527480a1ea067384f1d
Author: walter <[email protected]>
AuthorDate: Sun Jan 18 12:18:55 2026 +0800

    [fix](cloud) cloud_unique_id is requried when load from cluster snapshot 
(#59820)
---
 .../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