Skip to content

ExponentialRetryAlgorithm should use the min of initialRpc and total timeout on the first attempt #2643

@mutianf

Description

@mutianf

Currently the first ever RPC timeout is only override in Callables.retrying when retries are disabled: https://github.com/googleapis/sdk-platform-java/blob/main/gax-java/gax/src/main/java/com/google/api/gax/rpc/Callables.java#L103. If someone only configured a total timeout and it's smaller than the default initialRpcTimeout, their first ever RPC won't respect the overall deadline, which could cause the operation takes longer than desired.

Metadata

Metadata

Assignees

No one assigned

    Labels

    priority: p2Moderately-important priority. Fix may not be included in next release.type: bugError or flaw in code with unintended results or allowing sub-optimal usage patterns.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions