Overview
The DBA_OB_TRANSFER_PARTITION_TASK_HISTORY view displays the history of Partition Transfer tasks performed for the current tenant.
Columns
Field |
Type |
Nullable |
Description |
|---|---|---|---|
| TASK_ID | bigint(20) | NO | Unique identifier of the partition transfer task. |
| CREATE_TIME | timestamp(6) | NO | Creation Time |
| FINISH_TIME | timestamp(6) | NO | Task completion time, including success and cancellation |
| TABLE_ID | bigint(20) | NO | Table ID of the partition for which data is being transferred |
| OBJECT_ID | bigint(20) | NO | Partition of Transfer OBJECT_ID |
| DEST_LS | bigint(20) | NO | Destination log stream |
| BALANCE_JOB_ID | bigint(20) | NO | CLB Work ID Associated with Task Execution |
| TRANSFER_TASK_ID | bigint(20) | NO | Transfer task ID associated with the task during execution |
| STATUS | varchar(64) | NO | Task status:
|
| COMMENT | longtext | YES | Comments |
Sample query
View the history of transfer partition tasks executed for this tenant.
obclient> SELECT * FROM oceanbase.DBA_OB_TRANSFER_PARTITION_TASK_HISTORY;
The query result is as follows:
+---------+----------------------------+----------------------------+----------+-----------+---------+----------------+------------------+-----------+---------------------------------+
| TASK_ID | CREATE_TIME | FINISH_TIME | TABLE_ID | OBJECT_ID | DEST_LS | BALANCE_JOB_ID | TRANSFER_TASK_ID | STATUS | COMMENT |
+---------+----------------------------+----------------------------+----------+-----------+---------+----------------+------------------+-----------+---------------------------------+
| 1 | 2023-11-29 16:50:55.155765 | 2023-11-29 16:51:34.000000 | 500012 | 500014 | 1003 | 26506 | 2 | COMPLETED | Partition transfer to dest LS |
| 2 | 2023-11-29 16:55:25.391784 | 2023-11-29 16:55:28.000000 | 500012 | 500014 | 1003 | -1 | -1 | FAILED | Partition is already in dest LS |
| 3 | 2023-11-30 14:28:20.647541 | 2023-11-30 14:28:57.000000 | 500012 | 500014 | 1003 | 416470 | 6 | COMPLETED | Partition transfer to dest LS |
| 4 | 2023-12-01 11:21:11.357272 | 2023-12-01 11:21:55.000000 | 500012 | 500014 | 1003 | 737367 | 10 | COMPLETED | Partition transfer to dest LS |
+---------+----------------------------+----------------------------+----------+-----------+---------+----------------+------------------+-----------+---------------------------------+
4 rows in set (0.002 sec)
References
Query the transfer partition tasks being processed by the current tenant: oceanbase.DBA_OB_TRANSFER_PARTITION_TASKS
View the history of all tenant-initiated partition transfer tasks: oceanbase.CDB_OB_TRANSFER_PARTITION_TASK_HISTORY
For more information about how to transfer partitions, see Transfer Partition.
For more information about Load balancing, see the Data Load Balancing section.