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

Aperta
#38 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
5/5
Tempo stimato
Più di una settimana
Idoneità per principianti
35/100
Tipo di issue
Bug
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
github, go
Ambito
api, backend

Direzione di ricerca

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.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

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

Lingua principale
Go
Stelle
1
Fork
0
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Preparare l'ambiente

Questo progetto non fornisce container di sviluppo, Dockerfile né guida per i contributori, quindi l'ambiente è a tuo carico: parti dal suo README e consulta la nostra guida al primo contributo per i passaggi generali.

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di coder/faucet

Tutte le issue di coder/faucet

Issue simili

Altre issue su Go

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.