Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

[Bug]: Router hides the final resume error when the retry budget expires

Aperta Adatta ai principianti
#2,245 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
2/5
Tempo stimato
1-3 ore
Idoneità per principianti
75/100
Tipo di issue
Bug
Chiarezza
Specificata chiaramente
Stato di attività
Attiva
Stack tecnologico
go
Ambito
api, backend

Direzione di ricerca

Leggi cmd/atenet/internal/router/ingress/resumer.go, in particolare flightResult, e esamina il client di test ingress esistente e i test che usano testing/synctest. Riproduci la sequenza con il parking abilitato, quindi verifica che, quando il budget dei tentativi si esaurisce, venga restituito l’errore finale NotFound anziché l’errore precedente ResourceExhausted.

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

Descrizione

area/network kind/bug
What happened?

With request parking enabled, the router can return an earlier capacity error even after a retry returns NotFound. The client then gets HTTP 503 instead of 404.

This is reproducible in a unit test. When the budget has expired, flightResult returns the saved lastRetryErr instead of the final RPC error.

Expected Behavior

Return the final non-retryable error, even if the RPC finishes after the retry budget expires.

Steps to Reproduce

Using the existing ingress test client and testing/synctest:

  1. Enable parking with a 300 ms budget.
  2. Return ResourceExhausted from the first ResumeActor call.
  3. On the next call, sleep for 300 ms and return NotFound.
  4. The resumer returns ResourceExhausted instead of NotFound.
expected terminal error rpc error: code = NotFound desc = actor not found, got rpc error: code = ResourceExhausted desc = no free workers available
Sandbox Runtime

Both / Runtime Agnostic. Reproduced in a unit test; no cluster involved.

Agent Substrate Version / Commit SHA

main at fa858d0fdbec0e942e43667dba75194665a2ff38, macOS arm64, Go 1.27.0.

Additional Context

Related to #1562, but this case already returns an error the router considers non-retryable.

Lingua principale
Go
Stelle
4.4k
Fork
515
Merge medio
2g 10h
PR unite (30g)
295

Preparare l'ambiente

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 agent-substrate/substrate

Tutte le issue di agent-substrate/substrate

Issue simili

Altre issue su Go

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.