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

Đang mở
#793 1 bình luận 0 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 1 ngày

Chưa có ai nhận issue này.

Đánh giá

Độ khó
4/5
Thời gian dự kiến
3-5 ngày
Mức phù hợp với người mới
48/100
Loại issue
Lỗi
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
go
Lĩnh vực
distributed-systems

Hướng nghiên cứu

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.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

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.

Ngôn ngữ chính
Go
Star
110
Fork
41
Merge trung bình
20 giờ 59 phút
Pull request đã merge (30 ngày)
27

Chuẩn bị môi trường

Dự án này không cung cấp dev container, Dockerfile hay hướng dẫn đóng góp, nên bạn cần tự thiết lập môi trường: hãy bắt đầu từ README và xem hướng dẫn đóng góp lần đầu của chúng tôi để biết các bước chung.

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của hyperledger/SmartBFT

Tất cả issue của hyperledger/SmartBFT

Issue tương tự

Thêm issue về Go

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.