yugabyte/yugabyte-db
GitHub で見る[DocDB] GetConsensusState could also return current index.
Open
#13,702 opened on 2022年8月21日
area/docdbgood first issuekind/enhancementpriority/medium
Repository metrics
- Stars
- (8,229 stars)
- PR merge metrics
- (平均マージ 17d 21h) (30d で 92 merged PRs)
説明
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