tencent cloud

TDSQL Boundless

LOGSERVICE_PROCESSLIST

PDF
Modo Foco
Tamanho da Fonte
Última atualização: 2026-02-10 11:06:28

Function

INFORMATION_SCHEMA.LOGSERVICE_PROCESSLIST displays the replay progress per RG in log replay.

Field Description

Field Name
Type
Description
sid
bigint unsigned
Unique ID of the log service.
rep_group_id
bigint unsigned
ID of RG.
raft_log_index
bigint
The current index of the synchronized Raft log.
state
varchar(64)
Current status of RG synchronization.
is_unhealthy
smallint
Whether the current synchronization status is healthy.
min_commit_ts_not_send
bigint unsigned
The smallest commit_ts of the unreplayed log.
leader_ts
varchar(64)
Current timestamp of the RG leader.
last_index_in_checkpoint
bigint unsigned
The index of the last replayed log.
next_index_in_checkpoint
bigint unsigned
The index of the next log to be replayed.
unconsumed_count_in_checkpoint
bigint unsigned
The number of unreplayed logs.
backup_start_index
bigint
Obtain the starting index of the backup logs.
backup_end_index
bigint
Obtain the ending index of the backup logs.
backuped_index
bigint
The index of the backed-up logs.
last_leader_change_ts
varchar(64)
The last change time of the RG leader.
err_msg
longtext
Error messages during RG replay.

Examples

tdsql>select * from LOGSERVICE_PROCESSLIST\\G
*************************** 1. row ***************************
sid: 29057889255555076
rep_group_id: 256
raft_log_index: 797509
state: WaitRaftLog
is_unhealthy: 0
commit_ts_barrier: 29057889222000822
min_commit_ts_not_send: NULL
leader_ts: 2024-11-19 10:59:34
last_index_in_checkpoint: 797509
next_index_in_checkpoint: NULL
unconsumed_count_in_checkpoint: 0
backup_start_index: 0
backup_end_index: 0
backuped_index: 0
last_leader_change_ts: 2024-11-19 10:59:29
err_msg:
1 row in set (0.00 sec)

Ajuda e Suporte

Esta página foi útil?

comentários