Note
This view is available starting with V4.6.0.
Purpose
The oceanbase.CDB_OB_BACKUP_VALIDATE_TASKS view displays information about backup validation tasks initiated by all tenants. Each task corresponds to a backup set or an archive log piece validation task.
Columns
| Column | Type | Nullable | Description |
|---|---|---|---|
| TENANT_ID | bigint(20) | NO | The tenant ID. This is 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 backup set to be validated or the piece_id of the archive log piece to be validated. |
| PATH | longtext | YES | The backup path or the 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 the archive log path to be validated. |
| PLUS_ARCHIVELOG | varchar(64) | NO | Indicates whether to include compensating logs. |
| INITIATOR_TASK_ID | bigint(20) | NO | The task ID of the compensating log validation task. If this task is not a compensating log validation task, the value is 0. |
| VALIDATE_LEVEL | varchar(64) | NO | The validation level. Valid values:
|
| ROUND_ID | bigint(20) | NO | The round ID of the archive log piece to be validated. If the value is 0, the task does not validate an archive log piece. |
| 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 information about backup validation tasks initiated by all tenants.
obclient(root@sys)[oceanbase]> SELECT * FROM oceanbase.CDB_OB_BACKUP_VALIDATE_TASKS\G
The query result is as follows:
*************************** 1. row ***************************
TENANT_ID: 1002
TASK_ID: 12
INCARNATION: 1
JOB_ID: 6
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
IN ITIATOR_TASK_ID: 0
VALIDATE_LEVEL: basic
ROUND_ID: 0
START_TIMESTAMP: 2026-03-03 14:25:46.597323
END_TIMESTAMP: 2026-03-03 14:25:47.767907
STATUS: COMPLETED
TOTAL_LS_COUNT: 2
FINISH_LS_COUNT: 2
TOTAL_BYTES: 21126037
VALIDATED_BYTES: 0
RESULT: 0
COMMENT:
*************************** 2. row ***************************
TENANT_ID: 1002
TASK_ID: 13
INCARNATION: 1
JOB_ID: 6
TASK_TYPE: BACKUPSET
ID: 2
PATH: file:///data/nfs/backup/data/backup_set_2_full
PATH_TYPE: BACKUP_SET_DEST
DEST_ID: 1002
PLUS_ARCHIVELOG: ON
INITIATOR_TASK_ID: 0
VALIDATE_LEVEL: basic
ROUND_ID: 0
START_TIMESTAMP: 2026-03-03 14:25:46.599383
END_TIMESTAMP: 2026-03-03 14:25:49.841837
STATUS: COMPLETED
TOTAL_LS_COUNT: 2
FINISH_LS_COUNT: 2
TOTAL_BYTES: 19295388
VALIDATED_BYTES: 0
RESULT: 0
COMMENT:
*************************** 3. row ***************************
TENANT_ID: 1002
TASK_ID: 14
INCARNATION: 1
JOB_ID: 6
TASK_TYPE: ARCHIVELOG_PIECE
ID: 1
PATH: file:///data/nfs/backup/data/backup_set_2_full/complement_log/piece_d1002r1p1
PATH_TYPE: ARCHIVELOG_PIECE_DEST
DEST_ID: 1002
PLUS_ARCHIVELOG: ON
INITIATOR_TASK_ID: 13
VALIDATE_LEVEL: basic
ROUND_ID: 1
START_TIMESTAMP: 2026-03-03 14:25:46.601306
END_TIMESTAMP: 2026-03-03 14:25:49.849563
STATUS: COMPLETED
TOTAL_LS_COUNT: 0
FINISH_LS_COUNT: 0
TOTAL_BYTES: 0
VALIDATED_BYTES: 0
RESULT: 0
COMMENT:
3 rows in set
References
View the execution history of all tenant-level backup validation tasks: CDB_OB_BACKUP_VALIDATE_TASK_HISTORY
View all job-level backup validation tasks:
