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: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]