oceanbase.DBA_OB_LS_ARB_REPLICA_TASK_HISTORY

2025-12-04 07:10:02  Updated

Note

This view is available starting with V4.1.0.

Purpose

This view displays the history of arbitration service tasks executed in the current tenant.

Columns

Column Type Nullable Description
TENANT_ID bigint(20) NO The tenant ID.
LS_ID bigint(20) NO The log stream ID.
TASK_ID bigint(20) NO The task ID.
EXECUTE_RESULT varchar(2048) NO The task execution result and duration. The value is in the format of "[ret:0; elapsed:72160;]".
CREATE_TIME datetime NO The task generation time.
FINISH_TIME datetime NO The task completion time.
TRACE_ID varchar(200) NO The trace ID of the task execution in the log.
TASK_TYPE varchar(32) NO The task type. Valid values:
  • ADD REPLICA: indicates an add replica task.
  • REMOVE REPLICA: indicates a remove replica task.
ARBITRATION_SERVICE varchar(512) NO The address of the arbitration service.
ARBITRATION_SERVICE_TYPE varchar(64) NO The type of the arbitration service. Currently, only ADDR is supported.
COMMENT varchar(2048) YES The task description.

Sample query

Query the history of arbitration service tasks executed in the current tenant.

obclient[oceanbase]> SELECT * FROM oceanbase.DBA_OB_LS_ARB_REPLICA_TASK_HISTORY;

The query result is as follows:

+-----------+-------+------------------+--------------------------+---------------------+---------------------+-----------------------------------+----------------+---------------------+--------------------------+--------------------------------------------+
| TENANT_ID | LS_ID | TASK_ID          | EXECUTE_RESULT           | CREATE_TIME         | FINISH_TIME         | TRACE_ID                          | TASK_TYPE      | ARBITRATION_SERVICE | ARBITRATION_SERVICE_TYPE | COMMENT                                    |
+-----------+-------+------------------+--------------------------+---------------------+---------------------+-----------------------------------+----------------+---------------------+--------------------------+--------------------------------------------+
|         1 |     1 | 1746691978624999 | [ret:0; elapsed:231834;] | 2025-05-08 16:12:59 | 2025-05-08 16:12:59 | YB4**************************-0-0 | ADD REPLICA    | 172.xx.xxx.xxx:2882 | ADDR                     | add arbitration replica service replica    |
|         1 |     1 | 1747029983106562 | [ret:0; elapsed:66614;]  | 2025-05-12 14:06:23 | 2025-05-12 14:06:23 | YB4**************************-0-0 | REMOVE REPLICA | 172.xx.xxx.xxx:2882 | ADDR                     | remove arbitration replica service replica |
+-----------+-------+------------------+--------------------------+---------------------+---------------------+-----------------------------------+----------------+---------------------+--------------------------+--------------------------------------------+
2 rows in set

Contact Us