Do `Lifecycle::{pause,resume}` need to be fallbile?
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ó
- 5/5
- Thời gian dự kiến
- Hơn một tuần
- Mức phù hợp với người mới
- 35/100
Hướng nghiên cứu
Start by reading the Lifecycle trait and its implementations, especially PciVirtioViona and PciVirtioVsock, where fallible calls are mentioned. Audit those calls and determine which can fail and how their errors should be handled; done means the implementations have a consistent, decided approach to reporting or propagating failures.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
We're putting together a prototype of Propolis that transfers OPTE's dynamic state like flow-tables during a migration. I naively called out to the OPTE methods for pausing and resuming inside the impl Lifecycle for PciVirtioViona, but realized that these methods are infallible, while the OPTE methods return an error. It's not clear what to do with that error. We could ignore it, panic, or return it (changing the trait method).
There are actually other places where we currently ignore a fallible call inside Lifecycle methods, e.g., for PciVirtioViona and PciVirtioVsock. That naively seems like the worst option, since we continue operating in an indeterminate state. Panicking seems better, but also forecloses on the opportunity to tell upstack software like Omicron what went wrong. Returning an error seems like a good choice too, but has drawbacks. It's not really clear that any of the failures even can happen in practice, in which case the error is more misleading than helpful. It's also not clear what to do when we hit one, since it might not really be possible to recover. But I do still think at least reporting the error, even if we then panic, is an improvement.
In any case, we should probably audit the Lifecycle implementations to see which are actually fallible and decide what to do with those errors.
- Ngôn ngữ chính
- Rust
- Star
- 326
- Fork
- 49
- Merge trung bình
- 1 ngày 13 giờ
- Pull request đã merge (30 ngày)
- 10
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
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- 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.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của oxidecomputer/propolis
-
development
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
oxidecomputer/propolis#1157 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
enhancement storage
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 66/100
oxidecomputer/propolis#1011 · 3 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
bug
Độ khó 4/5 1-2 ngày Mức phù hợp với người mới 35/100
oxidecomputer/propolis#1265 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 45/100
oxidecomputer/propolis#1261 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
development
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 55/100
oxidecomputer/propolis#1259 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
Tất cả issue của oxidecomputer/propolis
Issue tương tự
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
anomalyco/rune#2432 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
-
[Bug]: Add Data's question says "Link to the file" for a GeoPackage where small tables are copiedĐang mởunconfirmed possible issue
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 64/100
Maintainer thường phản hồi trong vòng 1 ngày
-
documentation
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
jerney-nexus/epikrise#364 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 62/100
Yeachan-Heo/gajae-code#8058 ·
Maintainer thường phản hồi trong vòng 1 ngày