TDSQL Boundless INFORMATION_SCHEMA

INFORMATION_SCHEMA.TDSTORE_REPLICATION_GROUP_EVENT_INFO用于查询 TDStore 层 replication_group 相关任务执行情况,包括。

相关产品
TDSQL Boundless 产品页,含版本规格、价格与购买入口。

一、功能

·create replication_group

·delete replication_group

·split replication_group

·merge replication_group

·destroy replica

二、字段说明

字段名 类型 描述
node_name varchar(64) 节点名称。
job_description text 任务描述。
job_id bigint unsigned 任务 ID。
old_rep_group_id bigint unsigned 原 replication_group 的 ID。
rep_group_id bigint unsigned create replication_group场景下,表示新生成的 replication_group 的 ID。split replication_group 场景下,表示分裂生成的 replication_group 的 ID。merge replication_group场景下,表示合并生成的 replication_group 的 ID。
ret varchar(64) 函数返回值。
my_job_ret varchar(64) 任务的返回值。
report_mc_ret varchar(64) 向 mc 汇报的返回值。
extra_info text 部分任务的额外信息,当前仅支持 destry replication_group,将列出原因。
event_type varchar(64) 任务类型。
begin_time varchar(64) 任务开始时间。
cost_us bigint unsigned 任务耗时,单位为微秒。
detailed_info text 任务及子任务每一步的耗时。

三、示例

tdsql>select * from TDSTORE_REPLICATION_GROUP_EVENT_INFO limit 1\\G*************************** 1. row *************************** node_name: node-Module13-180-5-004 job_description: merge replication group job_id: 31736old_rep_group_id: 2607222 rep_group_id: 8101200 ret: 0(EC_OK) my_job_ret: 0(EC_OK) report_mc_ret: 0(EC_OK) extra_info: NULL event_type: TD_EVENT_MERGE_REPLICATION_GROUP begin_time: 2024-11-04 20:53:56 294 cost_us: 3726373 detailed_info: [MERGE_REPLICATION_GROUP: <BEGIN: 4120us>, <WAIT_ALL_TXNS: 3us>, <WAIT_MERGE_LOG_APPLIED: 967033us>, <FORCE_INSTALL_SNAPSHOT_FOR_VANISHED_RG: 2213872us>, <MERGE_LEASE: 0us>, <MERGE_WRITE_FENCE: 516515us>, <REPORT_TO_MC: 21880us>, <COMMIT: 2896us>, <END: 54us>]

赞 (0)
上一篇 4天前
下一篇 4天前