一、字段说明
| 字段名 | 类型 | 描述 |
| sid | bigint unsigned | log service 的唯一 ID。 |
| rep_group_id | bigint unsigned | RG 的 ID。 |
| raft_log_index | bigint | 当前同步的 Raft log 的 index。 |
| state | varchar(64) | 当前 RG 同步的状态。 |
| is_unhealthy | smallint | 当前同步状态是否健康。 |
| min_commit_ts_not_send | bigint unsigned | 最小的还未回放的日志 commit_ts。 |
| leader_ts | varchar(64) | 当前 RG leader 的时间戳。 |
| last_index_in_checkpoint | bigint unsigned | 上一个回放的日志 index。 |
| next_index_in_checkpoint | bigint unsigned | 下一个将要回放的日志 index。 |
| unconsumed_count_in_checkpoint | bigint unsigned | 还未回放的日志数量。 |
| backup_start_index | bigint | 获取备份日志的起始 index。 |
| backup_end_index | bigint | 获取备份日志的终止 index。 |
| backuped_index | bigint | 已经备份的日志 index。 |
| last_leader_change_ts | varchar(64) | RG leader 上一次变化的时间。 |
| err_msg | longtext | RG 回放时错误信息。 |
二、示例
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: NULLunconsumed_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)