Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

CreateNode deadline timer retains disposed mesh hub until operation budget

Chiusa
#6,307 2 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
30/100
Tipo di issue
Bug
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
csharp
Ambito
backend

Direzione di ricerca

Start from MeshExtensions.HandleCreateNodeRequest and the Timeout.Absolute fallback that captures the handler closure, then trace what MessageHub the closure still references. Run MeshHubDisposalLeakTest.MeshHub_IsCollected_AfterMeshAndServiceProviderDisposal to reproduce. Done when that test passes, the create lifecycle tests stay green, and the post-creation timer callbacks are cleared when the handler chain ends.

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

Descrizione

bug sev:L

Symptom

Plugins PR #3159 CI run 37756688023 failed MeshHubDisposalLeakTest.MeshHub_IsCollected_AfterMeshAndServiceProviderDisposal with a non-stack GC root after the mesh and service provider were disposed. The ClrMD path was:

LocalScheduler.WorkItem → Timeout.Absolute → Defer → MeshExtensions.HandleCreateNodeRequest closure → MessageHub

The sampled create and update had completed before disposal. Rx 7's LocalScheduler keeps a cancelled absolute-deadline work item in its priority queue until its due time. The create deadline's fallback observable captured the whole handler closure, including the hub. The post-creation timer also captured its callback after cancellation.

Fix and verification

Keep only the path, budget, and current stage in the timeout fallback. Clear the post-creation timer callbacks when the handler chain terminates. Preserve the existing deadline and create response behavior. Verify Release builds, create lifecycle tests, and the Plugins host disposal test using the changed core revision.

CI evidence: https://github.com/Systemorph/MeshWeaver.Plugins/actions/runs/37756688023/job/113251221898

Lingua principale
C#
Stelle
12
Fork
5
Merge medio
5h 28m
PR unite (30g)
976

Preparare l'ambiente

  • Nessun Dockerfile né file Docker Compose
  • Ha un modello di pull request
  • Nessuna guida per i contributori

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 Systemorph/MeshWeaver

Tutte le issue di Systemorph/MeshWeaver

Issue simili

Altre issue su C#

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.