[Feature Request]: Add explicit bundle abort signal to the FnAPI

Offen
#41,887 1 Kommentar 0 Reaktionen 1 zugewiesene Person Auf GitHub ansehen

Maintainer antworten meist innerhalb von 2 Tagen

@ryan-mbuashundip arbeitet bereits daran.

Seit 02.12.2026.

Bewertung

Dieses Issue wurde noch nicht bewertet.

Beschreibung

dataflow go java new feature P2 python
What would you like to happen?

Problem
The FnAPI has no way for a runner to cancel an in-flight bundle. When a runner abandons a bundle, it can't safely send a synthetic is_last=true: truncated input would look like normal completion, so @FinishBundle and downstream fused transforms would run on partial data. It can only stop sending data or, at best, request a split with fraction_of_remainder=0. The SDK's bundle thread stays blocked waiting for is_last=true on the data channel and leaks, as on the Google Cloud Dataflow Runner.
Related: #18756 (TODO in SdkHarnessClient).
Proposal
Add an explicit bundle-abort instruction to the FnAPI control channel, gated by a protocol capability so runners can fall back safely for older SDKs. On receiving an abort signal for an active bundle, the SDK should unblock waiting data and state channel operations, tear down the bundle without running @FinishBundle or reusing its processor, and fail the bundle so the worker thread can be reclaimed immediately.

Issue Priority

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

Issue Components
  • Component: Python SDK
  • Component: Java SDK
  • Component: Go SDK
  • Component: Typescript SDK
  • Component: IO connector
  • Component: Beam YAML
  • Component: Beam examples
  • Component: Beam playground
  • Component: Beam katas
  • Component: Website
  • Component: Infrastructure
  • Component: Spark Runner
  • Component: Flink Runner
  • Component: Prism Runner
  • Component: Hazelcast Jet Runner
  • Component: Google Cloud Dataflow Runner
Vorherrschende Sprache
Java
Sterne
8.7k
Forks
4.8k
Ø Merge
3 T. 20 Std.
Gemergte PRs (30 T.)
446

Entwicklungsumgebung

Erste Schritte

  1. Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
  2. Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
  3. Forken Sie das Repository und arbeiten Sie in einem Branch.
  4. Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.

Mehr aus apache/beam

Alle Issues in apache/beam

Ähnliche Issues

Weitere Issues zu Java

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.