gavinchou commented on code in PR #40767:
URL: https://github.com/apache/doris/pull/40767#discussion_r1759717460


##########
fe/fe-core/src/main/java/org/apache/doris/cloud/catalog/CloudEnv.java:
##########
@@ -91,14 +91,20 @@ public CloudUpgradeMgr getCloudUpgradeMgr() {
         return this.upgradeMgr;
     }
 
+    public String getCloudInstanceId() {
+        return String.valueOf(Config.cluster_id);
+    }
+
     @Override
     public void initialize(String[] args) throws Exception {
+        if (Strings.isNullOrEmpty(Config.cloud_unique_id) && Config.cluster_id 
== -1) {
+            throw new UserException("cluser_id must be specified in fe.conf if 
deployed "
+                                    + "in dissaggregated, because fe should 
known to which it belongs");

Review Comment:
   
   ```suggestion
                                       + "in cloud mode, because FE should 
known to which cluster it belongs");
   ```



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscr...@doris.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscr...@doris.apache.org
For additional commands, e-mail: commits-h...@doris.apache.org

Reply via email to