Note
This view was introduced in OceanBase Database V4.3.4.
Purpose
In the system tenant, the GV$OB_KV_GROUP_COMMIT_STATUS view can be used to query the group commit status of all OBKV tenant clients.
Columns
| Column | Type | Nullable? | Description |
|---|---|---|---|
| SVR_IP | varchar(46) | NO | The IP address of the node where the group commit group resides. |
| SVR_PORT | bigint(20) | NO | The port number of the node where the group commit group resides. |
| 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 ls 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. Valid values:
|
| QUEUE_SIZE | bigint(20) | NO | The size of the request queue in the group commit group, indicating the number of unprocessed requests in the queue. |
| 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 commit group was created. |
| UPDATE_TIME | timestamp(6) | NO | The time when the status information of the group commit group was last refreshed. |
Sample query
obclient > SELECT * FROM oceanbase.GV$OB_KV_GROUP_COMMIT_STATUS limit 2;
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 | 1 | -1 | -1 | -1 | FAIL | 0 | 1 | 2024-10-15 14:35:03.595659 | 2024-10-15 14:35:03.595659 |
| xxx.xxx.xxx.xxx | 2882 | 1001 | -1 | -1 | -1 | FAIL | 0 | 1 | 2024-10-15 14:39:59.364065 | 2024-10-15 14:39:59.364065 |
+-----------------+----------+-----------+----------+-------+----------------+------------+------------+------------+----------------------------+----------------------------+
2 rows in set (0.010 sec)
