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

Abierto
#41,928 1 comentario 0 reacciones 1 asignado Ver en GitHub

Los mantenedores suelen responder en 2 días

@singhmrinal02 ya está trabajando en esto.

Desde el 5/12/2026.

  • #41937 de @dcacace-goog — abierto
  • #41938 de @dcacace-goog — abierto

Evaluación

Dificultad
4/5
Tiempo estimado
3-5 días
Aptitud para principiantes
48/100
Tipo de issue
Nueva funcionalidad
Claridad
Bastante claro
Estado de actividad
Activo
Stack tecnológico
grpc, java

Línea de trabajo

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.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

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
Lenguaje dominante
Java
Estrellas
8.7k
Forks
4.8k
Merge medio
3 d 20 h
PR fusionados (30 d)
446

Preparar el entorno

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de apache/beam

Todos los issues de apache/beam

Issues similares

Más issues de Java

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.