[Bug]: ModelManager.should_spawn_model() skips active job accounting when spawning after eviction

Aperta
#41,900 1 commento 0 reazioni 1 assegnatario Vedi su GitHub

I maintainer di solito rispondono entro 2 giorni

@arijeetmukherjee3108-droid ci sta già lavorando.

Dal 3/12/2026.

  • #41901 di @arijeetmukherjee3108-droid — aperta

Valutazione

Questa issue non è ancora stata valutata.

Descrizione

bug P2 python
What happened?

In sdks/python/apache_beam/ml/inference/model_manager.py, ModelManager.should_spawn_model() returns True after _evict_to_make_space() succeeds without updating _pending_reservations, _total_active_jobs or _active_counts[tag].

As a result:

  • _total_active_jobs stays 0 while the newly spawned model is active, allowing an incoming unknown model to enter isolation mode and delete it mid-inference.
  • release_model() later drives _total_active_jobs negative.
  • _spawn_new_model() still subtracts est_cost from _pending_reservations and decrements _active_counts[tag] below 0 if loading fails.
Issue Priority

Priority: 2 (default / most bugs should be filed as P2)

Issue Components
  • Component: Python SDK
  • Component: Java SDK
  • Component: Go SDK
  • Component: Typescript SDK
  • Component: IO connector
  • Component: Beam YAML
  • Component: Beam examples
  • Component: Beam playground
  • Component: Beam katas
  • Component: Website
  • Component: Infrastructure
  • Component: Spark Runner
  • Component: Flink Runner
  • Component: Prism Runner
  • Component: Hazelcast Jet Runner
  • Component: Google Cloud Dataflow Runner
Lingua principale
Java
Stelle
8.7k
Fork
4.8k
Merge medio
3g 20h
PR unite (30g)
446

Preparare l'ambiente

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 apache/beam

Tutte le issue di apache/beam

Issue simili

Altre issue su Java

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.