Nested fronts grow one record entry per group over lite-05/06 sparse keys

Open
#10,320 2 comments 1 reaction 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
44/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Active
Tech stack
rust

Research direction

Start with the existing test an_ordered_front_reader_coalesces_the_keys_between_groups_in_logical_reported and the Delivered::unreported handling in rs/moq-net/src/model/resume.rs. Reproduce the growth with the source behind two fronts, then trace how forget_past_budget and next_drop report superseded runs. Done means the regression test passes and, if relay drop forwarding changes, /verify-subscribe has been run.

Written by the indexing model from the issue text.

Description

quest

Problem

When one front reads another front's logical track as its copy, both readers' records grow by one run per group on a steady sparse-key track whose upstream speaks moq-lite-05/06. Those versions have no SUBSCRIBE_SKIP, so the keys between groups arrive as superseded drops instead of declared skips.

Found on https://github.com/moq-dev/moq/pull/10177, which merges those drops for a single front's key-order reader (resume::Reader::pass_drop). With nested fronts, both pools still grew one run per group (over 300 groups, 200 ms budget, roomy pools), with or without that change.

The inner front reads in arrival order. Its budget fold (forget_past_budget) already covers the keys between groups, so its next_drop passes the superseded run without reporting it, and the outer reader never sees it to merge.

Plan

  • Reproduce it as a test next to an_ordered_front_reader_coalesces_the_keys_between_groups_in_logical_reported in rs/moq-net/src/model/resume.rs, with the source behind two fronts.
  • When the budget folded a superseded run's keys before they were handed out, pass that run on to whoever polls the inner reader's drops (see Delivered::unreported). A wire publisher (TrackRun) would then forward it immediately instead of waiting for drop_unserved at the end.
  • If a relay's drop forwarding changes, run /verify-subscribe.

(Written by Claude Opus 5.5)

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.