net: a widened lite-07 reader takes recovered groups its new max already expired

Abierto
#10,346 1 comentario 0 reacciones 0 asignados Ver en GitHub

Los mantenedores suelen responder en 1 día

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
5/5
Tiempo estimado
Más de una semana
Aptitud para principiantes
25/100
Tipo de issue
Error
Claridad
Bastante claro
Estado de actividad
Activo
Stack tecnológico
javascript, rust

Línea de trabajo

Read js/net/src/lite/widened_max_age.test.ts and the Rust widened_max_age::a_widened_reader_gets_what_was_skipped test to compare the recovery behavior. The issue offers two possible approaches, so first trace how recovered groups are judged in the JS arrival reader and how TrackState::join_start handles stale groups. Done means the JS test gets groups 2 to 5 and a Rust test covers recovery groups landing one at a time.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

quest

Problem

A lite-07 reader that widens its live join's max asks for the groups its narrow max was told were old (SUBSCRIBE_OLD) on a recovery subscription of its own. The recovery has no max age and lands its groups oldest first. @moq/net's arrival reader hands out each recovered group as it lands. At that moment the next group it holds is the first one the narrow max kept, so the recovered group's reach looks bounded by that much later group and it passes as fresh, even when the widened max already expired it.

js/net/src/lite/widened_max_age.test.ts (a widened reader gets what was skipped on moq-lite-07-wip) pins this. Groups 0 to 9 are one per second, the reader widens from 2.5 s to 6.5 s, and it gets groups 0 to 5, where Rust's widened_max_age::a_widened_reader_gets_what_was_skipped gets 2 to 5. Rust's sim lands the recovery's groups together, so its reader judges group 0 with group 1 already held. Over a real network Rust may hand them out the same way.

Options

  • Hold a recovered group's staleness verdict until the keys just above it are accounted for, as TrackState::join_start waits for given-up keys before passing a stale group.
  • Have the recovery carry the reader's max (a Joined range), so the publisher judges and names the expired groups in SUBSCRIBE_OLD again.

Done

The JS test asserts groups 2 to 5 for lite-07, and a Rust test drives the recovery's groups landing one at a time.

Found in https://github.com/moq-dev/moq/pull/10307.

(Written by Claude Opus 5.5 with high)

Lenguaje dominante
Rust
Estrellas
1.6k
Forks
251
Merge medio
10 h 10 min
PR fusionados (30 d)
822

Preparar el entorno

Este proyecto no incluye contenedor de desarrollo, Dockerfile ni guía de contribución, así que la configuración corre por tu cuenta: empieza por su README y consulta nuestra guía para la primera contribución para los pasos generales.

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de moq-dev/moq

Todos los issues de moq-dev/moq

Issues similares

Más issues de Rust

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.