Skip to content

Commit

Permalink
fix: bigtable v2 retry config settings to disable streaming RPC retri…
Browse files Browse the repository at this point in the history
…es (#315)

PiperOrigin-RevId: 312558019

Source-Author: Google APIs <noreply@google.com>
Source-Date: Wed May 20 14:40:11 2020 -0700
Source-Repo: googleapis/googleapis
Source-Sha: a175708acd7a367ab3ed120fa562331e1761d825
Source-Link: googleapis/googleapis@a175708
  • Loading branch information
yoshi-automation committed May 27, 2020
1 parent 482603a commit a7e43f0
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
Expand Up @@ -311,13 +311,13 @@ private static Builder initDefaults(Builder builder) {

builder
.readRowsSettings()
.setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("idempotent"))
.setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("non_idempotent"))
.setRetrySettings(RETRY_PARAM_DEFINITIONS.get("read_rows_params"));

builder
.sampleRowKeysSettings()
.setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("idempotent"))
.setRetrySettings(RETRY_PARAM_DEFINITIONS.get("idempotent_params"));
.setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("non_idempotent"))
.setRetrySettings(RETRY_PARAM_DEFINITIONS.get("non_idempotent_params"));

builder
.mutateRowSettings()
Expand All @@ -326,7 +326,7 @@ private static Builder initDefaults(Builder builder) {

builder
.mutateRowsSettings()
.setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("idempotent"))
.setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("non_idempotent"))
.setRetrySettings(RETRY_PARAM_DEFINITIONS.get("mutate_rows_params"));

builder
Expand Down
6 changes: 3 additions & 3 deletions synth.metadata
Expand Up @@ -4,15 +4,15 @@
"git": {
"name": ".",
"remote": "https://github.com/googleapis/java-bigtable.git",
"sha": "0ef4959c25ab65d65ae3533455af0e7a351851d3"
"sha": "b17e39f2d8ca84335ab85d80372d6a0309a684c6"
}
},
{
"git": {
"name": "googleapis",
"remote": "https://github.com/googleapis/googleapis.git",
"sha": "fb8f62b6784f43faf4b64179c57ce4b4931b1a00",
"internalRef": "310426317"
"sha": "a175708acd7a367ab3ed120fa562331e1761d825",
"internalRef": "312558019"
}
},
{
Expand Down

0 comments on commit a7e43f0

Please sign in to comment.