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

Đang mở
#41,900 1 bình luận 0 reaction 1 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 2 ngày

@arijeetmukherjee3108-droid đang làm issue này rồi.

Từ ngày 3/12/2026.

  • #41901 của @arijeetmukherjee3108-droid — đang mở

Đánh giá

Issue này chưa được đánh giá.

Mô tả

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
Ngôn ngữ chính
Java
Star
8.7k
Fork
4.8k
Merge trung bình
3 ngày 20 giờ
Pull request đã merge (30 ngày)
446

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của apache/beam

Tất cả issue của apache/beam

Issue tương tự

Thêm issue về Java

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.