Note
This view is available starting with V4.6.0.
Purpose
The oceanbase.CDB_OB_BACKUP_VALIDATE_TASK_HISTORY view displays the execution history of task-level backup validation tasks initiated by all tenants. Each task corresponds to a backup set or archive log piece validation task.
Columns
| Column | Type | Nullable | Description |
|---|---|---|---|
| TENANT_ID | bigint(20) | NO | The ID of the tenant that initiated the validation task. |
| TASK_ID | bigint(20) | NO | The task ID. |
| INCARNATION | bigint(20) | NO | The incarnation ID. |
| JOB_ID | bigint(20) | NO | The job ID. |
| TASK_TYPE | varchar(64) | NO | The type of the validation task. Valid values:
|
| ID | bigint(20) | YES | The backup_set_id of the validated backup set or the piece_id of the validated archive log piece. |
| PATH | longtext | YES | The backup path or archive log path to be validated. |
| PATH_TYPE | varchar(64) | YES | The type of the path to be validated. Valid values:
|
| DEST_ID | bigint(20) | YES | The ID of the backup path or archive log path to be validated. |
| PLUS_ARCHIVELOG | varchar(64) | NO | Indicates whether to include compensating logs. |
| INITIATOR_TASK_ID | bigint(20) | NO | The parent task ID of the compensating log validation task. 0 if no such task exists. |
| VALIDATE_LEVEL | varchar(64) | NO | The validation level. Valid values:
|
| ROUND_ID | bigint(20) | NO | The ID of the round to which the archive log piece validation task belongs. 0 if no such round exists. |
| START_TIMESTAMP | timestamp(6) | NO | The start time of the validation task. |
| END_TIMESTAMP | timestamp(6) | NO | The end time of the validation task. |
| STATUS | varchar(64) | NO | The status of the task. Valid values:
|
| TOTAL_LS_COUNT | bigint(20) | YES | The number of log streams in the task. |
| FINISH_LS_COUNT | bigint(20) | YES | The number of log streams that have been validated. |
| TOTAL_BYTES | bigint(20) | YES | The estimated size of data to be validated, in bytes. |
| VALIDATED_BYTES | bigint(20) | YES | The size of data that has been validated, in bytes. |
| RESULT | bigint(20) | NO | The error code of the validation result. |
| COMMENT | varchar(4096) | YES | The reason for the failure of the validation task. |
Sample query
Query the execution history of task-level backup validation tasks initiated by all tenants.
obclient(root@sys)[oceanbase]> SELECT * FROM oceanbase.CDB_OB_BACKUP_VALIDATE_TASK_HISTORY\G
The query result is as follows:
*************************** 1. row ***************************
TENANT_ID: 1002
TASK_ID: 3
INCARNATION: 1
JOB_ID: 2
TASK_TYPE: BACKUPSET
ID: 1
PATH: file:///data/nfs/backup/data/backup_set_1_full
PATH_TYPE: BACKUP_SET_DEST
DEST_ID: 1002
PLUS_ARCHIVELOG: OFF
INITIATOR_TASK_ID: 0
VALIDATE_LEVEL: basic
ROUND_ID: 0
START_TIMESTAMP: 2026-03-03 13:58:07.802366
END_TIMESTAMP: 2026-03-03 13:58:09.860637
STATUS: COMPLETED
TOTAL_LS_COUNT: 2
FINISH_LS_COUNT: 2
TOTAL_BYTES: 21126037
VALIDATED_BYTES: 0
RESULT: 0
COMMENT:
1 row in set
References
View information about task-level backup validation tasks initiated by all tenants: CDB_OB_BACKUP_VALIDATE_TASKS
View information about job-level backup validation tasks initiated by all tenants:
