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

Open
#10,454 0 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
5/5
Estimated time
Over a week
Newbie friendliness
35/100
Issue type
Bug
Clarity
Clearly specified
Activity status
Active
Tech stack
rust
Domain
networking

Research direction

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.

Written by the indexing model from the issue text.

Description

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)

Dominant language
Rust
Stars
1.6k
Forks
251
Avg merge
10h 10m
Merged PRs (30d)
822

Getting set up

This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from moq-dev/moq

All issues in moq-dev/moq

Similar issues

More Rust issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.