moq-net: a finished track's arrival reader holds back a group created below its end

Aperta
#10,455 1 commento 1 reazione 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
3/5
Tempo stimato
1-2 giorni
Idoneità per principianti
65/100
Tipo di issue
Bug
Chiarezza
Specificata chiaramente
Stato di attività
Attiva
Stack tecnologico
rust

Direzione di ricerca

Start with rs/moq-net/tests/integration/publisher_accounting.rs, especially the parity module and parity::History::step; read cold_copies_read_as_the_source and the rule that excludes Create after Finish. Remove that exclusion and run the named test. Done when the direct publisher and relay arrival readers agree on when group 2 is returned, while the ordered-reader behavior and release history still pass.

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

Descrizione

Found by the cache-parity kio::model sweep in https://github.com/moq-dev/moq/pull/10446 (rs/moq-net/tests/integration/publisher_accounting.rs, parity module).

Divergence: an arrival reader (Subscriber::recv_group) subscribed to a track that already finished doesn't return a group created below the end after it subscribed. It returns the group only once the keys still owed below it settle. A relay's arrival reader returns the same group as soon as it lands.

Shortest history (writer handle held, so key 1 stays owed): [Create(2), Finish] | [Create(0)].

  • Direct (reading the publisher's track): ordered group 0, then pending; arrival group 2, then pending.
  • One or two relay hops: ordered group 0, then pending; arrival group 0, group 2, then pending.

With Release added after Create(0), every path reads group 0, group 2, end, so only when the reader gets the group differs, not which groups it gets.

Steps to reproduce: in parity::History::step, remove the exclusion that disables Create after Finish and run cold_copies_read_as_the_source.

(Written by Claude Opus 5.5 with high)

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

  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 moq-dev/moq

Tutte le issue di moq-dev/moq

Issue simili

Altre issue su Rust

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.