[Feature Request]: Dataflow streaming worker should budget GetWork against queued and active work

Đang mở
#41,928 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

@singhmrinal02 đang làm issue này rồi.

Từ ngày 5/12/2026.

  • #41937 của @dcacace-goog — đang mở
  • #41938 của @dcacace-goog — đang mở

Đánh giá

Độ khó
4/5
Thời gian dự kiến
3-5 ngày
Mức phù hợp với người mới
48/100
Loại issue
Tính năng
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
grpc, java
Lĩnh vực
distributed-systems

Hướng nghiên cứu

Read BoundedQueueExecutor and GetWorkBudgetDistributors.distributeEvenly() in the Java Dataflow Streaming Engine worker, then trace how ActiveWorkState tracks queued and in-flight work. Check the streaming_engine_getwork_budgeting experiment and existing worker tests first. Done means the receive thread stays non-blocking and GetWork refills account for active, queued, and in-flight work, with the stated 50% clamp and per-stream cap.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

dataflow java P2
What would you like to happen?

When the Dataflow Streaming Engine worker's BoundedQueueExecutor is full, execute() blocks the GetWork gRPC receive thread. Work items still buffered on the stream can't be registered in ActiveWorkState, so they miss heartbeats, expire on Windmill, and get retried.

GetWork stream budgets also ignore work that is already queued or executing on the worker (GetWorkBudgetDistributors.distributeEvenly() uses a zero active-work budget), so streams keep requesting work while bundles are backed up.

Proposed change, behind the streaming_engine_getwork_budgeting experiment (off by default):

  1. Add a non-blocking reservation path to BoundedQueueExecutor (soft target plus hard cap, tryReserve / executeReserved) so the receive thread never blocks.
  2. Refill GetWork budget based on active, queued and in-flight work, clamping streams once the worker reaches 50% of its target and capping per-stream refills so idle fan-out backends can't hoard budget.
Issue Priority

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

Issue Components
  • Component: Java SDK
  • 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.