SHOW REPLICATION TABLES command and the information_schema.LIBRA_TABLE_STATUS system view to help you check the loading status of data objects. A table's data is ready for querying through the analysis engine only when its AVAILABLE field is set to 1.

Parameter | Description |
Database Name | The name of the database to which the data object belongs. |
Object Name | The name of the table loaded into the analysis engine. Views can also be loaded into the read-only analysis engine, but view information is not displayed here. To view a view, use the MySQL command. When a large number of objects are loaded, you can search by keyword in the object name through the console. |
Status | The current stage of data loading, including data loading in progress, data loading completed, real-time incremental loading in progress, synchronization exception, and so on. |
Data Load Status | When an object is in the data loading stage, the loading progress of the current table is displayed. |
Incremental Phase Latency | When an object is in the real-time incremental loading stage, the sync latency information of that object is displayed (unit: seconds). |
Other Information | If an exception occurs during data loading, the relevant error information for that object's loading exception is displayed. |
SHOW REPLICATION TABLES;
SELECT * FROM information_schema.LIBRA_TABLE_STATUS;
Field Name | Type | Description |
DATABASE_NAME | VARCHAR | Database name. |
TABLE_NAME | VARCHAR | Table name. |
REPLICA_ID | VARCHAR | Replica identifier, in the format of r<number>, for example, r1. |
AVAILABLE | TINYINT | Whether the data is queryable. 1 indicates queryable, and 0 indicates not queryable. |
REPLICATION_STEP | VARCHAR | Current data loading stage. |
LAG | BIGINT | Sync latency (seconds). The actual latency value is displayed only during the Change Propagation and Load Data Finish stages; -1 is displayed for other stages. |
MESSAGE | VARCHAR | Additional information. When an exception occurs, the error cause is displayed. |
REPLICATION_STEP field are as follows:STATE Value | Description | AVAILABLE |
UnStart | Data loading not started. | 0 |
Loading Data | Full data loading in progress. | 0 |
Load Data Finish | Full data loading is completed, waiting to go to incremental synchronization. | 1 |
Change Propagation | Real-time incremental synchronization in progress (change propagation). | 1 (when normal) |
Skip | The table is skipped and not loaded. | 0 |
Error | Data loading error occurred. | 0 |
REPLICATION_STEP is Change Propagation and the AVAILABLE is 0, it indicates that the data of the table in the analysis engine is outdated.information_schema.LIBRA_TABLE_STATUS system view supports filtering with standard SQL WHERE conditions. For example:-- Check the loading status of the specified databaseSELECT * FROM information_schema.LIBRA_TABLE_STATUSWHERE DATABASE_NAME = 'your_database';-- View all tables with abnormal loadingSELECT * FROM information_schema.LIBRA_TABLE_STATUSWHERE REPLICATION_STEP = 'Error';-- View all tables that are ready for querySELECT * FROM information_schema.LIBRA_TABLE_STATUSWHERE AVAILABLE = 1;
Esta página foi útil?
Você também pode entrar em contato com a Equipe de vendas ou Enviar um tíquete em caso de ajuda.
comentários