Delivery runs: many logins can still delay others' webhooks, and gaps can count 2 for one subscription
@ThomasK33 đang làm issue này rồi.
Từ ngày 19/11/2026.
Đánh giá
Issue này chưa được đánh giá.
Mô tả
Two notes from the verifiers of #67 and #71 are still open. Neither is new: both were already there before #67.
Many logins can still delay other logins' webhooks
A /cron/deliver run has 25 s, but it starts reads only while 20 s are left, so all reads share about 5 s. Each login gets 1 s of that (scanTimeout), and ScanTargets serves the subscriptions furthest behind first. Five or more logins that each add one subscription per run with cursor: "v1.0" (a replay of the whole history) take the whole 5 s. Other logins' subscriptions then wait. The verifier of #67 saw a healthy login go unserved in 8 of 8 runs with five such logins; base behaves the same. Four logins delayed it by one run in 2 of 5 tries.
Possible fixes: order ScanTargets round-robin by principal instead of by scanned_through alone, or cap how many replay subscriptions a login may open per run.
gaps can count 2 for one subscription in one run
If a purge raises the purge mark above a subscription's read position after that read crossed the old mark, the same run can raise a second gap for it. DeliverResult.Gaps (the gaps field of /cron/deliver) then counts 2 for one subscription. Only one gap envelope is sent. Found by reading enqueueWindow in faucet/deliver.go, not tested live.
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
- Đọ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 coder/faucet
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
-
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 35/100
-
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 28/100
-
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 68/100
-
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 30/100
Issue tương tự
-
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 62/100
slavakurilyak/awesome-ai-agents#1026 ·
-
GetBatchResponseById panics for items without a body (204/302) and for unknown idsCó thể đã có người làm @0z5a đã nhận hôm nay. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
-
bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 80/100
JuliusBrussee/caveman#1567 ·
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
-
bug postgresql
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 73/100
Maintainer thường phản hồi trong vòng 1 ngày