Note
This view is available starting with V4.3.4.
Purpose
In a MySQL tenant, the GV$OB_KV_GROUP_COMMIT_STATUS view provides access to the group commit status information of all nodes in the OBKV tenant.
Columns
| Column | Type | Nullable | Description |
|---|---|---|---|
| SVR_IP | varchar(46) | NO | The IP address of the node where the group commit group is located. |
| SVR_PORT | bigint(20) | NO | The port number of the node where the group commit group is located. |
| TENANT_ID | bigint(20) | NO | The tenant ID: |
| TABLE_ID | bigint(20) | NO | The ID of the table to which the group commit group belongs. |
| LS_ID | bigint(20) | NO | The ID of the log stream to which the group commit group belongs. |
| SCHEMA_VERSION | bigint(20) | NO | The schema version of the table to which the group commit group belongs. |
| GROUP_TYPE | varchar(32) | NO | The type of the group commit group. Supported types:
|
| QUEUE_SIZE | bigint(20) | NO | The size of the request queue in the group commit group, representing the number of unprocessed requests. |
| BATCH_SIZE | bigint(20) | NO | The size of the batch in the group commit group. |
| CREATE_TIME | timestamp(6) | NO | The time when the group was created in the group commit process. |
| UPDATE_TIME | timestamp(6) | NO | The time when the status information of the group was last refreshed in the group commit process. |
Sample query
Query the group commit status information of all nodes in the OBKV tenant and display the first day's records.
obclient > SELECT * FROM oceanbase.GV$OB_KV_GROUP_COMMIT_STATUS limit 1;
The query result is as follows:
+-----------------+----------+-----------+----------+-------+----------------+------------+------------+------------+----------------------------+----------------------------+
| SVR_IP | SVR_PORT | TENANT_ID | TABLE_ID | LS_ID | SCHEMA_VERSION | GROUP_TYPE | QUEUE_SIZE | BATCH_SIZE | CREATE_TIME | UPDATE_TIME |
+-----------------+----------+-----------+----------+-------+----------------+------------+------------+------------+----------------------------+----------------------------+
| xxx.xxx.xxx.xxx | 2882 | 1002 | -1 | -1 | -1 | FAIL | 0 | 1 | 2024-10-15 14:39:59.254693 | 2024-10-15 14:39:59.254693 |
+-----------------+----------+-----------+----------+-------+----------------+------------+------------+------------+----------------------------+----------------------------+
1 rows in set (0.010 sec)