`ADMIN DIAGNOSE TABLET tablet_id`
This statement makes it easier to quickly diagnose the status of a tablet.
See "ADMIN-DIAGNOSE-TABLET.md" for details
```
mysql> admin diagnose tablet 10196;
+----------------------------------+------------------------------+------------+
| Item | Info | Suggestion |
+----------------------------------+------------------------------+------------+
| TabletExist | Yes | |
| TabletId | 10196 | |
| Database | default_cluster:db1: 10192 | |
| Table | tbl1: 10194 | |
| Partition | tbl1: 10193 | |
| MaterializedIndex | tbl1: 10195 | |
| Replicas(ReplicaId -> BackendId) | {"10197":10002} | |
| ReplicasNum | OK | |
| ReplicaBackendStatus | Backend 10002 is not alive. | |
| ReplicaVersionStatus | OK | |
| ReplicaStatus | OK | |
| ReplicaCompactionStatus | OK | |
+----------------------------------+------------------------------+------------+
```
2.3 KiB
2.3 KiB
title, language
| title | language |
|---|---|
| ADMIN DIAGNOSE TABLET | en |
ADMIN DIAGNOSE TABLET
description
This statement is used to diagnose the specified tablet. The results will show information about the tablet and some potential problems.
grammar:
ADMIN DIAGNOSE TABLET tblet_id
illustrate:
The lines of information in the result are as follows:
1. TabletExist: Whether the Tablet exists
2. TabletId: Tablet ID
3. Database: The DB to which the Tablet belongs and its ID
4. Table: The Table to which Tablet belongs and its ID
5. Partition: The Partition to which the Tablet belongs and its ID
6. MaterializedIndex: The materialized view to which the Tablet belongs and its ID
7. Replicas(ReplicaId -> BackendId): Tablet replicas and their BE.
8. ReplicasNum: Whether the number of replicas is correct.
9. ReplicaBackendStatus: Whether the BE node where the replica is located is normal.
10.ReplicaVersionStatus: Whether the version number of the replica is normal.
11.ReplicaStatus: Whether the replica status is normal.
12.ReplicaCompactionStatus: Whether the replica Compaction status is normal.
example
1. Diagnose tablet 10001
ADMIN DIAGNOSE TABLET 10001;
keyword
ADMIN,DIAGNOSE,TABLET