ADMIN-SET-REPLICA-STATUS
ADMIN-SET-REPLICA-STATUSβ
Nameβ
ADMIN SET REPLICA STATUS
Descriptionβ
This statement is used to set the state of the specified replica.
This command is currently only used to manually set the status of certain replicas to BAD or OK, allowing the system to automatically repair these replicas
grammar:
ADMIN SET REPLICA STATUS
PROPERTIES ("key" = "value", ...);
The following properties are currently supported:
- "tablet_id": Required. Specify a Tablet Id.
- "backend_id": Required. Specify Backend Id.
- "status": Required. Specifies the state. Currently only "bad" or "ok" are supported
If the specified replica does not exist, or the status is already bad, it will be ignored.
Note:
The copy set to Bad status may be deleted immediately, please proceed with caution.
Exampleβ
-
Set the replica status of tablet 10003 on BE 10001 to bad.
ADMIN SET REPLICA STATUS PROPERTIES("tablet_id" = "10003", "backend_id" = "10001", "status" = "bad");
-
Set the replica status of tablet 10003 on BE 10001 to ok.
ADMIN SET REPLICA STATUS PROPERTIES("tablet_id" = "10003", "backend_id" = "10001", "status" = "ok");
Keywordsβ
ADMIN, SET, REPLICA, STATUS