Back to Starrocks

CANCEL DECOMMISSION

docs/en/sql-reference/sql-statements/cluster-management/nodes_processes/CANCEL_DECOMMISSION.md

4.1.0508 B
Original Source

CANCEL DECOMMISSION

CANCEL DECOMMISSION is used to undo a node decommission.

:::tip

Only the cluster_admin role has the privilege to perform this operation. You can follow the instructions in GRANT to grant this privilege.

:::

Syntax:

sql
CANCEL DECOMMISSION BACKEND "<host>:<heartbeat_port>"[,"<host>:<heartbeat_port>"...]

Examples

  1. Cancel decommission of two nodes.

    sql
    CANCEL DECOMMISSION BACKEND "host1:port", "host2:port";