ADMIN SET REPLICA STATUS

description

  1. This commend is used to set the status of the specified replica.

This command is currently only used to manually set the status of some replicas to BAD or OK, allowing the system to automatically repair these replicas.

  1. Syntax:
  2. ADMIN SET REPLICA STATUS
  3. PROPERTIES ("key" = "value", ...);
  4. The following attributes are currently supported:
  5. "tablet_id": required. Specify a Tablet Id.
  6. "backend_id": required. Specify a Backend Id.
  7. "status": required. Specify the status. Only "bad" and "ok" are currently supported.
  8. If the specified replica does not exist or the status is already bad or ok, it will be ignored.
  9. Notice:
  10. Replica set to Bad status may be dropped immediately, please proceed with caution.

example

  1. 1. Set the replica status of tablet 10003 on BE 10001 to bad.
  2. ADMIN SET REPLICA STATUS PROPERTIES("tablet_id" = "10003", "backend_id" = "10001", "status" = "bad");
  3. 2. Set the replica status of tablet 10003 on BE 10001 to ok.
  4. ADMIN SET REPLICA STATUS PROPERTIES("tablet_id" = "10003", "backend_id" = "10001", "status" = "ok");

keyword

  1. ADMIN,SET,REPLICA,STATUS