RetrySettings for StreamingRead/StreamingSql #2320
Labels
api: spanner
Issues related to the googleapis/java-spanner API.
type: feature request
‘Nice-to-have’ improvement, new feature or different behavior or design.
Thanks for stopping by to let us know something could be better!
Is your feature request related to a problem? Please describe.
Recently I was working on fine tunning timeouts/retry settings for Spanner requests for one of applications.
I noticed that initRpcTimeout doesn't works on StreamingRead/StreamingSql type of requests.
So I started to go through source code and found that there are 3 places/configurations where I can work with timeouts:
First two aren't configurable from RetrySettings level.
Could you please makes them part of RetrySettings, so I don't have to interact with GrpcCallContext directly?
Describe the solution you'd like
Either to have separate set of properties in RetrySettings like (and recalculate them similarly to initRpcTimeout during retries):
or reuse initRpcTimeout as streamWaitTimeout/grpc-timeout:
Describe alternatives you've considered
Currently I interact with GrpcCallContext directly to set this values:
The text was updated successfully, but these errors were encountered: