Refuse a park of a fiber whose clone has not answered

Abierto
#103 0 comentarios 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
4/5
Tiempo estimado
3-5 días
Aptitud para principiantes
55/100
Tipo de issue
Error
Claridad
Bien especificado
Estado de actividad
Activo
Stack tecnológico
go

Línea de trabajo

Start by tracing how the backend handles PARK, KILL, and CLONED replies, then inspect the fake helper's command queue and the Rust helper behavior described in the issue. Add or update the table test for parking during a clone deadline; done means the park is refused and the late CLONED reply is dropped.

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

Descripción

bug

A clone that misses its deadline drops its reply entry before it drops the fiber, and a park sent in that window reaches the helper ahead of the KILL. The clone's late CLONED then answers the park's entry, so the park returns success with no delta written.

  • The backend refuses a park for a fiber whose clone has not answered, the way it refuses one for a fiber it does not know.
  • A clone that gives up drops the fiber before it drops its reply entry, so no command can reach the helper between the two.
  • A reply is matched to the command that asked for it, not to the fence alone, so a CLONED can never satisfy a PARK.
  • The fake helper queues a command that arrives before a birth answers, as the Rust helper does, so the backend's tests can reach the window.
  • A table test parks a fiber during its clone's deadline and checks that the park is refused and the late CLONED is dropped.

The host never parks a fiber before its clone returns today, so nothing hits this yet. Related to #56, which refuses a second park of a fiber whose park is still running.

Lenguaje dominante
Go
Estrellas
5
Forks
5
Merge medio
15 h 27 min
PR fusionados (30 d)
41

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 Azure/fiberd

Todos los issues de Azure/fiberd

Issues similares

Más issues de Go

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.