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

Open
#10,455 1 comment 1 reaction 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
65/100
Issue type
Bug
Clarity
Clearly specified
Activity status
Active
Tech stack
rust

Research direction

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.

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

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)

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.