dcacace-goog opened a new issue, #41928: URL: https://github.com/apache/beam/issues/41928
### 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 - [x] Component: Java SDK - [x] Component: Google Cloud Dataflow Runner -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
