apache / apache/beam

Connecting data channel blocks getting ProcessBundleResponse

Open
#20,391 0 comments 0 reactions 0 assignees View on GitHub
bug fn-execution java P3
Dominant language
Java
Stars
8.7k
Forks
4.7k
Avg merge
1d 20h
Merged PRs (30d)
196

Description

In Java runner harness shared library code, the ActivateBundle is returned only when data channel is connected: https://github.com/apache/beam/blob/master/runners/java-fn-execution/src/main/java/org/apache/beam/runners/fnexecution/control/SdkHarnessClient.java#L268-L283. But the SDK can fail the bundle and sent the ProcessBundleResponse with error before registering data channel, e.g, throwing exceptions when creating FnApiDoFnRunner. This results in the runner gets timeout error(https://github.com/apache/beam/blob/master/runners/java-fn-execution/src/main/java/org/apache/beam/runners/fnexecution/data/GrpcDataService.java#L182) and doesn't populate possible error in ProcessBundleResponse. We need to find a way to abort sooner and populate correct error message.

Imported from Jira [BEAM-10231](https://issues.apache.org/jira/browse/BEAM-10231). Original Jira may contain additional context.
Reported by: boyuanz.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.