Overview
Displays all tasks that should be generated currently, including those that have been generated and those that have not been generated.
Columns
Field Name |
Type |
Whether can be NULL |
Description |
|---|---|---|---|
| TENANT_ID | bigint(20) | NO | Tenant ID |
| LS_ID | bigint(20) | NO | Log Stream ID |
| TASK_TYPE | varchar(64) | NO | Task type. Valid values:
|
| PRIORITY | varchar(5) | NO | Task priority. Valid values:
|
| TARGET_REPLICA_SVR_IP | varchar(46) | YES | IP Address of the Server Where the Target Replica Resides |
| TARGET_REPLICA_SVR_PORT | bigint(20) | YES | Port number of the server where the target replica resides |
| TARGET_PAXOS_REPLICA_NUMBER | bigint(20) | YES | Quorum Paxos Replicas for Target Replica |
| TARGET_REPLICA_TYPE | varchar(16) | YES | Target Replica Type |
| SOURCE_REPLICA_SVR_IP | varchar(46) | YES | IP address of the server where the source replica resides. This field is invalid for operations such as deleting a replica or modifying the quorum count, and is displayed as NULL. |
| SOURCE_REPLICA_SVR_PORT | bigint(20) | YES | Port number of the server where the source replica resides. This field is invalid and displays as 0 for tasks such as deleting a replica or modifying the quorum count. |
| SOURCE_PAXOS_REPLICA_NUMBER | bigint(20) | YES | Quorum Paxos Replicas at Source |
| SOURCE_REPLICA_TYPE | varchar(16) | YES | Source Replica Type This field is invalid for tasks such as deleting a replica or modifying the quorum count, and is displayed as NULL. |
| TASK_EXEC_SVR_IP | varchar(46) | YES | IP Address of the Task Execution Machine |
| TASK_EXEC_SVR_PORT | bigint(20) | YES | Port number of the task execution machine |
| COMMENT | varchar(2048) | YES | Reason for Task Generation Remarks |
| CONFIG_VERSION | varchar(128) | YES | Record the config_version information of the clog layer during disaster recovery task execution. |
Sample query
View all tasks that should be generated for the current tenant.
obclient> SELECT * FROM oceanbase.V$OB_LS_REPLICA_TASK_PLAN\G
The query result is as follows:
*************************** 1. row ***************************
TENANT_ID: 1
LS_ID: 1
TASK_TYPE: ADD REPLICA
PRIORITY: HIGH
TARGET_REPLICA_SVR_IP: 172.xx.xxx.231
TARGET_REPLICA_SVR_PORT: 2882
TARGET_PAXOS_REPLICA_NUMBER: 3
TARGET_REPLICA_TYPE: FULL
SOURCE_REPLICA_SVR_IP: 172.xx.xxx.215
SOURCE_REPLICA_SVR_PORT: 2882
SOURCE_PAXOS_REPLICA_NUMBER: 2
SOURCE_REPLICA_TYPE: FULL
TASK_EXEC_SVR_IP: 172.xx.xxx.231
TASK_EXEC_SVR_PORT: 2882
COMMENT: add paxos replica according to locality
CONFIG_VERSION:
1 row in set