Skip to content

Commit

Permalink
fix: update the readRow attempt timeouts to be inline with unary rpcs…
Browse files Browse the repository at this point in the history
… instead of scans (#1834)

* fix: update the readRow attempt timeouts to be inline with unary rpcs instead of scans

Change-Id: Id4622bc2c5c657146c7be78ae474cac3f5c0c3b4

* 🦉 Updates from OwlBot post-processor

See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md

---------

Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
  • Loading branch information
igorbernstein2 and gcf-owl-bot[bot] committed Jul 17, 2023
1 parent 25e2890 commit 168c33e
Showing 1 changed file with 1 addition and 7 deletions.
Expand Up @@ -645,16 +645,10 @@ private Builder() {
.setIdleTimeout(Duration.ofMinutes(5))
.setWaitTimeout(Duration.ofMinutes(5));

// Point reads should use same defaults as streaming reads, but with a shorter timeout
readRowSettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
readRowSettings
.setRetryableCodes(readRowsSettings.getRetryableCodes())
.setRetrySettings(
readRowsSettings()
.getRetrySettings()
.toBuilder()
.setTotalTimeout(IDEMPOTENT_RETRY_SETTINGS.getTotalTimeout())
.build());
.setRetrySettings(IDEMPOTENT_RETRY_SETTINGS);

sampleRowKeysSettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
sampleRowKeysSettings
Expand Down

0 comments on commit 168c33e

Please sign in to comment.