You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
gRPC call task hangs forever when the server is unreachable #1892
A call: grpc task whose server can't be reached never completes. The workflow instance's future stays pending forever and nothing is logged.
GrpcExecutor creates the call with CallOptions.DEFAULT.withWaitForReady() and no deadline. With wait-for-ready, gRPC does not fail the RPC while the channel is in TRANSIENT_FAILURE; it waits for the channel to become ready. If the server is down, or the host/port is wrong, it waits forever.
A task timeout fails the task, but orTimeout doesn't cancel the gRPC call. The pending call stays open, and so does the ManagedChannel the executor creates when no grpcChannelProvider is configured: it is only shut down when the call completes.
What you expected to happen:
The task fails with a workflow error caused by UNAVAILABLE, like an HTTP call task to an unreachable host does. A try/retry can then handle it. This is gRPC's default (fail-fast) behavior.
Found in Quarkus Flow: when its Quarkus-managed gRPC channel isn't created, the SDK falls back to its own channel with the host/port from the workflow, and the workflow hung instead of failing.
Proposed fix: drop withWaitForReady(). Setting a default deadline would be an alternative, but it would also limit long streaming calls; a task timeout already serves that purpose.
Environment:
Specification version used: 1.0.x (reproduced on main and 7.35.4.Final)
Activity
[Fix open-workflow-specification#1892] Fail gRPC calls to an unreacha…