resume: a route switch after a header-only payload stall never recovers, and hands a held group out past its max age
I maintainer di solito rispondono entro 1 giorno
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 4/5
- Tempo stimato
- 3-5 giorni
- Idoneità per principianti
- 45/100
- Tipo di issue
- Bug
- Chiarezza
- Abbastanza chiara
- Stato di attività
- Attiva
- Stack tecnologico
- rust
- Ambito
- backend, networking
Direzione di ricerca
Start with rs/moq-net/tests/integration/route_health.rs, especially the payload_stall reproduction and a_standby_recovers_a_payload_stall_within_its_budget from linked PR #10314. Compare the Stall::Headers behavior with the Upstream and Downstream cases, then trace how resume chooses the switch boundary and handles held groups. Done when the reader recovers after a clean switch and held groups past the 2 s max age are cut as Old.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
Problem
When the serving copy holds group headers whose frames never arrive (a header-only payload stall), resume mishandles the next route switch:
- A clean switch never recovers the reader. After a header-only stall on
M1 -> E, closing that session cleanly leavesEreading nothing for the rest of the run. One group fails asOld, and the subscription neither ends nor resumes on the healthy routeM2. The same close after an Upstream or Downstream stall (no headers held) recovers. - A held group is delivered far past its max age. With a route-health standby moving the track to
M2(https://github.com/moq-dev/moq/pull/10314), group 3, whose header the replaced copy held, is handed out about 8 s after its successors, past the reader's 2 s max age, and is never cut asOld.
Reproduction
The first reproduces on main (cbd27de054) with rs/moq-net/tests/integration/route_health.rs's payload_stall diamond (one-second groups, 2 s max age). In payload_stall, replace the stalled write(span.as_secs()).await with:
if matches!(stall, Stall::Headers) && span.as_secs() == 10 {
write(2).await;
m1_e.server.abort(Error::Stream(StreamError::Cancel));
m1_e.client.abort(Error::Stream(StreamError::Cancel));
write(span.as_secs() - 2).await;
} else {
write(span.as_secs()).await;
}
Then run payload_stall(Stall::Headers, Duration::from_secs(10)). E observes 0 frames and one Old failure. Stall::Upstream and Stall::Downstream with the same close observe 80 frames.
The second shows in #10314's a_standby_recovers_a_payload_stall_within_its_budget under Stall::Headers: group 3's frames arrive at the end of the run (stamped about 10.5 s after the stall began), while groups 4 to 11 arrive on time.
Suspect
Both involve a replaced copy that holds a group's header and none of its frames. The switch boundary is "the largest group any copy holds", so such a copy raises it, and its header-only groups are left to a copy that will never deliver them. They are then neither recovered from the serving route in time nor cut at the reader's budget.
(Written by Claude Opus 5.5)
- Lingua principale
- Rust
- Stelle
- 1.6k
- Fork
- 251
- Merge medio
- 10h 10m
- PR unite (30g)
- 822
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
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di moq-dev/moq
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 77/100
moq-dev/moq#10463 · 1 commento · 1 reazione ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 70/100
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 82/100
moq-dev/moq#10460 · 1 commento · 1 reazione ·
I maintainer di solito rispondono entro 1 giorno
-
quest
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
moq-dev/moq#10373 · 2 commenti · 1 reazione ·
I maintainer di solito rispondono entro 1 giorno
-
quest
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
moq-dev/moq#10336 · 2 commenti · 1 reazione ·
I maintainer di solito rispondono entro 1 giorno
Issue simili
-
[Bug] AM Context Monitor (am-monitor): Session turns count is capped at 80 due to turns.slice(-80)Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 83/100
lbjlaq/Antigravity-Manager#4180 ·
I maintainer di solito rispondono entro 1 giorno
-
[BUG]: `unpinned-uses` reports a 64-character commit pin from a SHA-256 repository as unpinnedApertabug triage
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
zizmorcore/zizmor#2608 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 79/100
I maintainer di solito rispondono entro 1 giorno
-
RecompLauncher supportAperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 68/100
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 83/100
longbridge/nsh#4201 ·
I maintainer di solito rispondono entro 1 giorno