redelivery: a replaced hook leaves failures after the last run without a final state

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

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
Loại issue
Lỗi
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
github, go
Lĩnh vực
api, backend

Hướng nghiên cứu

Read the #26 redesign and its rules, then trace the lease handling for hook changes, especially where the old position and Clear are available. Review whether recording the stretch up to GitHub's clock on the new hook's first page fits those rules; done means the design covers the reproduced silent loss without violating the redesign.

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

Mô tả

Problem

When the operator replaces the webhook, a failure that the old hook listed after the last redelivery run gets no final state. The lease turns the old hook's open ranges into gaps, but the stretch above the old position was never a range, so it becomes neither a read nor a gap. The new hook cannot read the old hook's list. No cron outage is needed: the failure only has to arrive between the last run and the hook change.

main at e8382ff has the same behavior. The #26 redesign does not change it.

Evidence

A round-4 reviewer of the #26 redesign reproduced it on the redesign branch and on main: a hook replaced 5 minutes after a failure that no run had read prints in_gap=0 silent_lost=1.

Direction

On a hook change, the run could record the stretch from the old position (less the read overlap) up to GitHub's clock at the first page of the new hook as one counted gap, next to the old hook's open ranges. This needs the old position and Clear at the lease, and a design review against the rules of #26.


Generated with xum • Model: anthropic:claude-opus-5-5 • Thinking: high

Ngôn ngữ chính
Go
Star
1
Fork
0
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

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 coder/faucet

Tất cả issue của coder/faucet

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.