Sync can save a new view the node already left

Đang mở
#799 0 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
45/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

Start by tracing sync's handling of a collected view through changeView and the view transition lock, then inspect how view records and view change records are written to the WAL. Check how minStartView records that a node has left a view, including across restart. The issue is resolved when sync skips aborting and recording a collected view below minStartView, preserving that state in the WAL.

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

Mô tả

When sync collects a state with a newer view, it aborts the current view and writes a new view record without checking whether the node already left that view. changeView then refuses to start the view, so no view runs until the next view change or sync. The record also replaces the view change record in the WAL. After a restart the node no longer knows it left the view, and can start it. A fix is to skip the abort and the record, under the view transition lock, when the collected view is below minStartView. Found in the review of the sync carry change.

Written by Claude for @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.