moq-net: a group created after its drop reaches a publisher's readers but never a relay's

Aperta
#10,454 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à
5/5
Tempo stimato
Più di una settimana
Idoneità per principianti
35/100
Tipo di issue
Bug
Chiarezza
Specificata chiaramente
Stato di attività
Attiva
Stack tecnologico
rust
Ambito
networking

Direzione di ricerca

Start with the parity model in rs/moq-net/tests/integration/publisher_accounting.rs, especially the parity module and History::recreates, then trace how Requests::drop_groups and SUBSCRIBE_DROP handle a fill that is answered with a drop. Reproduce the listed histories and compare direct readers with one and two relay links. The issue needs a decision on whether to document the behavior or change the lite-07 wire protocol; completion means settling that choice and updating the parity coverage.

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), which reads a publisher's track directly and through relay copies and requires both to match.

Divergence: a group the publisher creates after a reader's fill for its key was answered with a drop reaches readers of the publisher's own track, but never a relay's readers.

Shortest histories (steps before | run before the readers subscribe from key 0, the rest after; direct is 0 links, relay is 1 or 2):

  • [Append(0), DropGroups(1..2)] | [Append(1), Finish]: direct arrival reader gets groups 0 and 1; relay arrival readers get only group 0.
  • [Create(2), <fill handler dropping every fill>] | [Create(0)]: direct arrival reader gets groups 0 and 2; relay arrival readers get only group 2.
  • [DropGroups(1..2)] | [Create(1), Finish] (writer handle held): direct arrival reader gets group 1; relay arrival readers never do.

The draft makes SUBSCRIBE_DROP final on its subscription and has a reader still owed the group ask on a request of its own. A relay reader whose own fill was answered with a drop settles the key, and nothing tells the relay that the publisher created it later, while a local reader of the publisher's track sees the group land.

Options:

  • Accept and document: a group created after its drop reaches only readers that hadn't settled its key yet. Requests::drop_groups and SUBSCRIBE_DROP already describe a drop as the publisher having no copy, so creating the group afterwards is unusual. No wire change.
  • Make the wire carry it: let a publisher deliver a group stream for a start it already named in SUBSCRIBE_DROP, or keep a fill's drop open until the end. This is a lite-07 wire change, so it has to land before the freeze.

The parity model leaves these histories out (History::recreates) until this is settled.

(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.