Forget a helper's fiber once it ends without a KILL

Đang mở
#104 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ó
3/5
Thời gian dự kiến
1-2 ngày
Mức phù hợp với người mới
76/100
Loại issue
Lỗi
Độ rõ ràng
Đặc tả rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
go, rust
Lĩnh vực
backend, testing

Hướng nghiên cứu

Read PROTOCOL.md and the Rust and fake helper implementations to trace when a fiber entry is removed and how PARK and KILL replies are handled. The issue calls for a table test in the fake helper covering refused birth and park; run the backend tests that exercise both helpers. Done means both helpers forget ended fibers, return the specified error for unknown PARK fences, and keep unknown KILL silent.

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

Mô tả

bug

The Rust helper removes a fence from its fiber map only on KILL. A fiber whose birth answered ERROR, or that ended through a park, leaves its entry behind for the helper's life, and a later command for that fence goes to a dropped receiver and is never answered.

  • The helper drops a fiber's entry when the fiber's thread ends, whatever ended it.
  • A PARK for a fence the helper no longer has is answered ERROR <fence> unknown fiber, while a KILL for one stays silent, as fiberd expects.
  • The fake helper answers the same way, so the backend's tests see one behaviour from both.
  • A table test in the fake helper ends a fiber by a refused birth and by a park, sends a PARK for each, and checks for the error.
  • PROTOCOL.md says when a helper forgets a fence.

Related to #97, whose refused probe clone leaves one such entry per warm.

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

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 Azure/fiberd

Tất cả issue của Azure/fiberd

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.