sdk-java icon indicating copy to clipboard operation
sdk-java copied to clipboard

Add option to configure the deadline of `ChannelManager#getServerCapabilities`

Open fextr opened this issue 7 months ago • 6 comments

Expected Behavior

When I setRpcTimeout in WorkflowServiceStubsOptions it overrides the deadline in getServerCapabilitiesWithRetryOrThrow

Actual Behavior

I'm enforced to use deprecated setHealthCheckAttemptTimeout because it is still used in the ChannelManager

Steps to Reproduce the Problem

  1. Set rpcTimeout in WorkflowServiceStubsOptions.
  2. Observe that it does not override the deadline in getServerCapabilitiesWithRetryOrThrow
  3. Note the usage of the deprecated healthCheckAttemptTimeout in ChannelManager.

Specifications

  • Version: Java SDK 1.24.0

fextr avatar Jul 02 '24 10:07 fextr