Files
doris/docs/en/sql-manual/sql-reference/Database-Administration-Statements/ADMIN-SHOW-REPLICA-STATUS.md
Mingyu Chen 74a482ca7f [fix] fix docs build bug (#9293)
After this PR #9272, the `docs/build_help_zip.sh` will run failed.
This PR fix this issue.
But the help module still has some parse problem, I will fix it in next PR.

This CL mainly changes:
1. fix `docs/build_help_zip.sh` error
2. remove `sql-reference-v2` to `sql-reference`
3. modify build extension github action to run `docs/build_help_zip.sh`
2022-04-28 22:19:04 +08:00

1.9 KiB

title, language
title language
ADMIN-SHOW-REPLICA-STATUS en

ADMIN-SHOW-REPLICA-STATUS

Name

ADMIN SHOW REPLICA STATUS

Description

This statement is used to display replica status information for a table or partition.

grammar:

 ADMIN SHOW REPLICA STATUS FROM [db_name.]tbl_name [PARTITION (p1, ...)]
[where_clause];

illustrate

  1. where_clause: WHERE STATUS [!]= "replica_status"

  2. replica_status: OK: replica is healthy DEAD: The Backend where the replica is located is unavailable VERSION_ERROR: replica data version is missing SCHEMA_ERROR: The schema hash of the replica is incorrect MISSING: replica does not exist

Example

  1. View the status of all replicas of the table

    ADMIN SHOW REPLICA STATUS FROM db1.tbl1;
    
  2. View a copy of a table with a partition status of VERSION_ERROR

    ADMIN SHOW REPLICA STATUS FROM tbl1 PARTITION (p1, p2)
    WHERE STATUS = "VERSION_ERROR";
    
  3. View all unhealthy replicas of the table

    ADMIN SHOW REPLICA STATUS FROM tbl1
    WHERE STATUS != "OK";
    

Keywords

ADMIN, SHOW, REPLICA, STATUS

Best Practice