Refuse a park of a fiber whose clone has not answered

Aperta
#103 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
55/100
Tipo di issue
Bug
Chiarezza
Specificata chiaramente
Stato di attività
Attiva
Stack tecnologico
go

Direzione di ricerca

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.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

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.

Lingua principale
Go
Stelle
5
Fork
5
Merge medio
15h 27m
PR unite (30g)
41

Preparare l'ambiente

Questo progetto non fornisce container di sviluppo, Dockerfile né guida per i contributori, quindi l'ambiente è a tuo carico: parti dal suo README e consulta la nostra guida al primo contributo per i passaggi generali.

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di Azure/fiberd

Tutte le issue di Azure/fiberd

Issue simili

Altre issue su Go

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.