Files
doris/docs/en/sql-manual/sql-reference/Database-Administration-Statements/ADMIN-REPAIR-TABLE.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.8 KiB

title, language
title language
ADMIN-REPAIR-TABLE en

ADMIN-REPAIR-TABLE

Name

ADMIN REPAIR TABLE

Description

statement used to attempt to preferentially repair the specified table or partition

grammar:

ADMIN REPAIR TABLE table_name[ PARTITION (p1,...)]

illustrate:

  1. This statement only means to let the system try to repair the shard copy of the specified table or partition with high priority, and does not guarantee that the repair can be successful. Users can view the repair status through the ADMIN SHOW REPLICA STATUS command.
  2. The default timeout is 14400 seconds (4 hours). A timeout means that the system will no longer repair shard copies of the specified table or partition with high priority. Need to re-use this command to set

Example

  1. Attempt to repair the specified table

     ADMIN REPAIR TABLE tbl1;
    
  2. Try to repair the specified partition

     ADMIN REPAIR TABLE tbl1 PARTITION (p1, p2);
    

Keywords

ADMIN, REPAIR, TABLE

Best Practice