[Feature Request]: Dataflow streaming worker should budget GetWork against queued and active work
I maintainer di solito rispondono entro 2 giorni
@singhmrinal02 ci sta già lavorando.
Dal 5/12/2026.
Valutazione
- Difficoltà
- 4/5
- Tempo stimato
- 3-5 giorni
- Idoneità per principianti
- 48/100
- Tipo di issue
- Funzionalità
- Chiarezza
- Abbastanza chiara
- Stato di attività
- Attiva
- Stack tecnologico
- grpc, java
- Ambito
- distributed-systems
Direzione di ricerca
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.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
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
- Lingua principale
- Java
- Stelle
- 8.7k
- Fork
- 4.8k
- Merge medio
- 3g 20h
- PR unite (30g)
- 446
Preparare l'ambiente
- Nessun Dockerfile né file Docker Compose
- Ha un modello di pull request
- Leggi la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di apache/beam
-
[Bug]: [Python] BigTableEnrichmentHandler coerces None lookup keys to literal b'None' and formats blank key name on KeyErrorForse già presa @shikhabhadoria l’ha presa 10 giorni fa. Apertaio P2 python
Difficoltà 2/5 1-3 ore Idoneità per principianti 82/100
apache/beam#41346 · 4 commenti · 1 assegnatario ·
I maintainer di solito rispondono entro 2 giorni
-
Release notes links wrongForse già presa @schizophrenicmaniac l’ha presa 24 giorni fa. Apertabug P3
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 67/100
apache/beam#41197 · 3 commenti · 1 assegnatario ·
I maintainer di solito rispondono entro 2 giorni
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 68/100
apache/beam#39624 · 2 reazioni ·
I maintainer di solito rispondono entro 2 giorni
-
[Bug]: PubsubIO used in batch incorrect batch cutoff sizeForse già presa @1fanwang l’ha presa 103 giorni fa. Apertabug io P3 pinned pubsub
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
apache/beam#28011 · 4 commenti ·
I maintainer di solito rispondono entro 2 giorni
-
build P3 sub-task
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 68/100
I maintainer di solito rispondono entro 2 giorni
Issue simili
-
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 72/100
avaje/avaje-metrics#142 · 1 commento ·
-
enhancement
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
RamazanKara/nightjar#299 · 4 commenti ·
-
Support emergency=access_point (POI type and rendering)Forse già presa @julenepj l’ha presa 1 giorno fa. Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
osmandapp/OsmAnd#27424 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
-
Link not working in the feedback concerning String.format() in exercise 'Tim from Marketing'Forse già presa @LaibaMunir016 l’ha presa 1 giorno fa. Aperta
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 88/100
exercism/java-analyzer#379 · 1 commento ·
-
TasksRunnerService.decode() should treat an empty lambdaBody as absentForse già presa @gky051224 l’ha presa oggi. Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 82/100
redisson/redisson#7477 · 1 commento ·
I maintainer di solito rispondono entro 2 giorni