Skip to content

org.apache.doris.common.DdlException: errCode = 2, detailMessage = failed to alter frontend errorCode: ALREADY_EXISTED msg: try to add a existing cluster id, existing_cluster_id=RESERVED_CLUSTER_ID_FOR_SQL_SERVER #33

@dyrnq

Description

@dyrnq
RuntimeLogger 2025-08-29 14:34:51,427 INFO (main|15) [CloudEnv.getLocalTypeFromMetaService():174] get cluster response from meta service status {
  code: OK
  msg: ""
}
cluster {
  cluster_id: "RESERVED_CLUSTER_ID_FOR_SQL_SERVER"
  cluster_name: "RESERVED_CLUSTER_NAME_FOR_SQL_SERVER"
  type: SQL
  nodes {
    cloud_unique_id: "1:170924324:fe"
    ip: "e3218a635b19"
    ctime: 1756448922
    mtime: 1756448922
    edit_log_port: 9010
    node_type: FE_MASTER
    host: "e3218a635b19"
  }
}
enable_storage_vault: true

RuntimeLogger 2025-08-29 14:34:51,427 WARN (main|15) [CloudEnv.getClusterIdAndRole():226] failed to get local fe's type, sleep 5 s, try again.
RuntimeLogger 2025-08-29 14:34:51,430 INFO (main|15) [CloudSystemInfoService.tryCreateInstance():1108] create instance, request: instance_id: "170924324"
name: "170924324"
sse_enabled: false
, response: status {
  code: ALREADY_EXISTED
  msg: "instance already existed, instance_id=170924324, err=Ok"
}

RuntimeLogger 2025-08-29 14:34:51,430 INFO (main|15) [CloudSystemInfoService.tryCreateInstance():1114] Successfully created instance 170924324, response: status {
  code: ALREADY_EXISTED
  msg: "instance already existed, instance_id=170924324, err=Ok"
}

RuntimeLogger 2025-08-29 14:34:51,433 INFO (main|15) [CloudSystemInfoService.alterFrontendCluster():842] alter cluster, request: instance_id: "170924324"
cluster {
  cluster_id: "RESERVED_CLUSTER_ID_FOR_SQL_SERVER"
  cluster_name: "RESERVED_CLUSTER_NAME_FOR_SQL_SERVER"
  type: SQL
  nodes {
    cloud_unique_id: "1:170924324:fe"
    ip: "209b121e94b0"
    ctime: 1756449291
    edit_log_port: 9010
    node_type: FE_MASTER
    host: "209b121e94b0"
  }
}
op: ADD_CLUSTER
, response: status {
  code: ALREADY_EXISTED
  msg: "try to add a existing cluster id, existing_cluster_id=RESERVED_CLUSTER_ID_FOR_SQL_SERVER"
}

RuntimeLogger 2025-08-29 14:34:51,434 WARN (main|15) [CloudSystemInfoService.alterFrontendCluster():844] alter frontend not ok, response: status {
  code: ALREADY_EXISTED
  msg: "try to add a existing cluster id, existing_cluster_id=RESERVED_CLUSTER_ID_FOR_SQL_SERVER"
}

RuntimeLogger 2025-08-29 14:34:51,434 WARN (main|15) [CloudEnv.tryAddMyselfToMS():210] get ddl exception 
org.apache.doris.common.DdlException: errCode = 2, detailMessage = failed to alter frontend errorCode: ALREADY_EXISTED msg: try to add a existing cluster id, existing_cluster_id=RESERVED_CLUSTER_ID_FOR_SQL_SERVER
        at org.apache.doris.cloud.system.CloudSystemInfoService.alterFrontendCluster(CloudSystemInfoService.java:846) ~[doris-fe.jar:1.2-SNAPSHOT]
        at org.apache.doris.cloud.system.CloudSystemInfoService.addFrontend(CloudSystemInfoService.java:857) ~[doris-fe.jar:1.2-SNAPSHOT]
        at org.apache.doris.cloud.catalog.CloudEnv.addFrontend(CloudEnv.java:409) ~[doris-fe.jar:1.2-SNAPSHOT]
        at org.apache.doris.cloud.catalog.CloudEnv.tryAddMyselfToMS(CloudEnv.java:208) ~[doris-fe.jar:1.2-SNAPSHOT]
        at org.apache.doris.cloud.catalog.CloudEnv.getClusterIdAndRole(CloudEnv.java:229) ~[doris-fe.jar:1.2-SNAPSHOT]
        at org.apache.doris.catalog.Env.initialize(Env.java:1085) ~[doris-fe.jar:1.2-SNAPSHOT]
        at org.apache.doris.cloud.catalog.CloudEnv.initialize(CloudEnv.java:128) ~[doris-fe.jar:1.2-SNAPSHOT]
        at org.apache.doris.DorisFE.start(DorisFE.java:187) ~[doris-fe.jar:1.2-SNAPSHOT]
        at org.apache.doris.DorisFE.main(DorisFE.java:97) ~[doris-fe.jar:1.2-SNAPSHOT]
2025-08-29T14:34:52+08:00 INF [MySQL] Checking the 127.0.0.1:9030 ...

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions