yugabyte/yugabyte-db

[DocDB] GetConsensusState could also return current index.

Open

#13.702 aberto em 21 de ago. de 2022

Ver no GitHub
 (3 comments) (0 reactions) (0 assignees)C (1.003 forks)batch import
area/docdbgood first issuekind/enhancementpriority/medium

Métricas do repositório

Stars
 (8.229 stars)
Métricas de merge de PR
 (Mesclagem média 17d 21h) (92 fundiu PRs em 30d)

Description

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

Guia do colaborador