[Feature Request]: Dataflow streaming worker should budget GetWork against queued and active work
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.
Đá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ả
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):
- Add a non-blocking reservation path to
BoundedQueueExecutor(soft target plus hard cap,tryReserve/executeReserved) so the receive thread never blocks. - 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
- Không có Dockerfile hay tệp Docker Compose
- Có mẫu pull request
- Đọc hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- 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.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của apache/beam
-
[Bug]: [Python] BigTableEnrichmentHandler coerces None lookup keys to literal b'None' and formats blank key name on KeyErrorCó thể đã có người làm @shikhabhadoria đã nhận 10 ngày trước. Đang mởio P2 python
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 82/100
apache/beam#41346 · 4 bình luận · 1 người được giao ·
Maintainer thường phản hồi trong vòng 2 ngày
-
Release notes links wrongCó thể đã có người làm @schizophrenicmaniac đã nhận 24 ngày trước. Đang mởbug P3
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 67/100
apache/beam#41197 · 3 bình luận · 1 người được giao ·
Maintainer thường phản hồi trong vòng 2 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
apache/beam#39624 · 2 reaction ·
Maintainer thường phản hồi trong vòng 2 ngày
-
[Bug]: PubsubIO used in batch incorrect batch cutoff sizeCó thể đã có người làm @1fanwang đã nhận 103 ngày trước. Đang mởbug io P3 pinned pubsub
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
apache/beam#28011 · 4 bình luận ·
Maintainer thường phản hồi trong vòng 2 ngày
-
build P3 sub-task
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 68/100
Maintainer thường phản hồi trong vòng 2 ngày
Issue tương tự
-
missing Git commit for 10.5-RC2Đang mở
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 72/100
avaje/avaje-metrics#142 · 1 bình luận ·
-
enhancement
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
RamazanKara/nightjar#299 · 4 bình luận ·
-
Support emergency=access_point (POI type and rendering)Có thể đã có người làm @julenepj đã nhận 1 ngày trước. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
osmandapp/OsmAnd#27424 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Link not working in the feedback concerning String.format() in exercise 'Tim from Marketing'Có thể đã có người làm @LaibaMunir016 đã nhận 1 ngày trước. Đang mở
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 88/100
exercism/java-analyzer#379 · 1 bình luận ·
-
TasksRunnerService.decode() should treat an empty lambdaBody as absentCó thể đã có người làm @gky051224 đã nhận hôm nay. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 82/100
redisson/redisson#7477 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 2 ngày