A restarted or renumbered view can lose the proposal it was in the middle of

Aperta
#793 1 commento 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
48/100
Tipo di issue
Bug
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
go

Direzione di ricerca

Read the review for #780 and the related work in #790 and its follow-up to understand how proposals are carried across view changes and restarts. Trace NewProposer and the restart paths described in the issue, focusing on restored view, phase, proposal, and leader-token state. Done means both restarting at a later view and restarting at the same view and sequence preserve the correct proposal and do not permit a conflicting proposal.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

Found in the review for #780. Both predate carrying proposals.

  1. When the controller starts a later view than the one the WAL restore put the view in (for example after a sync on start), NewProposer raises the view number but keeps the restored phase (PROPOSED or PREPARED) and proposal of the earlier view. The view then runs an earlier view's proposal under the new number: it rebroadcasts a prepare of the earlier view and, if it leads, doesn't take the leader token.
  2. When a view in the middle of its own proposal at (v, s) is restarted at the same view and sequence, for example by a sync that finds nothing newer, the new view starts empty. Its leader takes the token and can pre-prepare another proposal at (v, s), and followers that were restarted too accept it after having voted for the first one. #790 and the follow-up keep a carried proposal across such a restart, but not the view's own.

Written by Claude (AI assistant) on behalf of @HagarMeir.

Lingua principale
Go
Stelle
110
Fork
41
Merge medio
20h 59m
PR unite (30g)
27

Preparare l'ambiente

Questo progetto non fornisce container di sviluppo, Dockerfile né guida per i contributori, quindi l'ambiente è a tuo carico: parti dal suo README e consulta la nostra guida al primo contributo per i passaggi generali.

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di hyperledger/SmartBFT

Tutte le issue di hyperledger/SmartBFT

Issue simili

Altre issue su Go

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.