Terminal finalizes fail with unique conflict when a duplicate holds the claim
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
Hướng nghiên cứu
Start with awa/tests/snooze_unique_conflict_test.rs and the finalize paths for queue storage and canonical storage. Add reproductions for completion, exhausted retries or terminal failure, DLQ moves, and handler-returned cancellation on both engines. Each test should show that the attempt reaches a terminal state while the newer duplicate keeps the uniqueness claim.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
Follow-up to #807 (fixed for snooze, retry-after and retryable-error backoff in #808).
A unique job whose states mask claims a terminal state (completed, failed, cancelled) but not running releases its claim while it runs, so an identical job can be enqueued and take the claim. When the first job then finalizes into a state its mask claims, the finalize must take the claim back, conflicts, and rolls back: the attempt stays running until stale-receipt rescue, as #807 described for snooze.
Affected finalizes, on both queue storage and canonical storage:
- completion (
completedin the mask); - retries exhausted and terminal failure (
failed); - move to the DLQ (
failed); - handler-returned cancel (
cancelled).
#808 handles the deferred-successor case by recording the attempt as cancelled as a duplicate. These paths need an equivalent decision for each target state: for example, finalize with the uniqueness fields stripped, as rescue duplicate cancellation does, so the newer job keeps the claim and the attempt still reaches a terminal state. Each needs a reproduction in the style of awa/tests/snooze_unique_conflict_test.rs on both engines.
- Ngôn ngữ chính
- Rust
- Star
- 37
- Fork
- 8
- Merge trung bình
- 14 giờ 16 phút
- Pull request đã merge (30 ngày)
- 244
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 hardbyte/awa
-
feature
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 25/100
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 18/100
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 48/100
Maintainer thường phản hồi trong vòng 1 ngày
-
0.6.19 release checklistĐang mởoperational
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 8/100
hardbyte/awa#861 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 35/100
hardbyte/awa#841 · 3 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
Issue tương tự
-
Mobile release verification reports missing build inputs with a custom Cargo target directoryĐang mởbug good first issue help wanted
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
getsotto/sotto-authenticator#139 ·
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 82/100
Maintainer thường phản hồi trong vòng 2 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 74/100
registrystack/registry-stack#2924 ·
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 78/100
foundry-rs/starknet-foundry#4733 ·
Maintainer thường phản hồi trong vòng 4 ngày
-
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 86/100