The SHOW MIGRATION CHECK STATUS syntax is used to query migration check status for specified migration job.
ShowMigrationCheckStatus ::=
'SHOW' 'MIGRATION' 'CHECK' 'STATUS' migrationJobId
migrationJobId ::=
integer | identifier | string
migrationJobId needs to be obtained through SHOW MIGRATION LIST syntax query| Column | Description |
|---|---|
| tables | migration check tables |
| result | check result |
| check_failed_tables | tables that failed the check |
| ignored_tables | ignored tables |
| active | whether the check job is active |
| inventory_finished_percentage | inventory check finished percentage |
| inventory_remaining_seconds | inventory check remaining time |
| incremental_idle_seconds | incremental idle time |
| check_begin_time | check begin time |
| check_end_time | check end time |
| duration_seconds | check duration in seconds |
| algorithm_type | check algorithm type |
| algorithm_props | check algorithm properties |
| error_message | error message |
SHOW MIGRATION CHECK STATUS 'j010180026753ef0e25d3932d94d1673ba551';
mysql> SHOW MIGRATION CHECK STATUS 'j010180026753ef0e25d3932d94d1673ba551';
+---------+--------+---------------------+----------------+--------+-------------------------------+-----------------------------+--------------------------+-------------------------+-------------------------+------------------+----------------+-----------------+---------------+
| tables | result | check_failed_tables | ignored_tables | active | inventory_finished_percentage | inventory_remaining_seconds | incremental_idle_seconds | check_begin_time | check_end_time | duration_seconds | algorithm_type | algorithm_props | error_message |
+---------+--------+---------------------+----------------+--------+-------------------------------+-----------------------------+--------------------------+-------------------------+-------------------------+------------------+----------------+-----------------+---------------+
| t_order | true | | | false | 100 | 0 | 0 | 2022-11-01 17:57:39.940 | 2022-11-01 17:57:40.587 | 0 | DATA_MATCH | | |
+---------+--------+---------------------+----------------+--------+-------------------------------+-----------------------------+--------------------------+-------------------------+-------------------------+------------------+----------------+-----------------+---------------+
1 row in set (0.01 sec)
SHOW, MIGRATION, CHECK, STATUS
