yugabyte/yugabyte-db
Vedi su GitHub[DocDB] GetConsensusState could also return current index.
Open
#13.702 aperta il 21 ago 2022
area/docdbgood first issuekind/enhancementpriority/medium
Metriche repository
- Star
- (8229 star)
- Metriche merge PR
- (Merge medio 17g 21h) (92 PR mergiate in 30 g)
Descrizione
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