yugabyte/yugabyte-db

[DocDB] GetConsensusState could also return current index.

Open

#13,702 创建于 2022年8月21日

在 GitHub 查看
 (3 评论) (0 反应) (0 负责人)C (1,003 fork)batch import
area/docdbgood first issuekind/enhancementpriority/medium

仓库指标

Star
 (8,229 star)
PR 合并指标
 (平均合并 17天 21小时) (30 天内合并 92 个 PR)

描述

Jira Link: DB-3242

Description

GetConsensusState is used by scripts such as yugatool to generate tablet-reports.

However the information printed wrt term/index are inaccurate:

The index printed which comes from RaftConfigPB corresponds to the index at which the last config-change took place.

It would be more relevant to have the current-index information be added to the proto. Also, for the leader, it would be useful to add information about whether or not the initial no-op has been replicated.

cc : @tvesely @eugeneckim @tylarb

贡献者指南