Skip to content

Commit a7e43f0

Browse files
fix: bigtable v2 retry config settings to disable streaming RPC retries (#315)
PiperOrigin-RevId: 312558019 Source-Author: Google APIs <[email protected]> Source-Date: Wed May 20 14:40:11 2020 -0700 Source-Repo: googleapis/googleapis Source-Sha: a175708acd7a367ab3ed120fa562331e1761d825 Source-Link: googleapis/googleapis@a175708
1 parent 482603a commit a7e43f0

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

google-cloud-bigtable/src/main/java/com/google/cloud/bigtable/data/v2/stub/BigtableStubSettings.java

+4-4
Original file line numberDiff line numberDiff line change
@@ -311,13 +311,13 @@ private static Builder initDefaults(Builder builder) {
311311

312312
builder
313313
.readRowsSettings()
314-
.setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("idempotent"))
314+
.setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("non_idempotent"))
315315
.setRetrySettings(RETRY_PARAM_DEFINITIONS.get("read_rows_params"));
316316

317317
builder
318318
.sampleRowKeysSettings()
319-
.setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("idempotent"))
320-
.setRetrySettings(RETRY_PARAM_DEFINITIONS.get("idempotent_params"));
319+
.setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("non_idempotent"))
320+
.setRetrySettings(RETRY_PARAM_DEFINITIONS.get("non_idempotent_params"));
321321

322322
builder
323323
.mutateRowSettings()
@@ -326,7 +326,7 @@ private static Builder initDefaults(Builder builder) {
326326

327327
builder
328328
.mutateRowsSettings()
329-
.setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("idempotent"))
329+
.setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("non_idempotent"))
330330
.setRetrySettings(RETRY_PARAM_DEFINITIONS.get("mutate_rows_params"));
331331

332332
builder

synth.metadata

+3-3
Original file line numberDiff line numberDiff line change
@@ -4,15 +4,15 @@
44
"git": {
55
"name": ".",
66
"remote": "https://github.com/googleapis/java-bigtable.git",
7-
"sha": "0ef4959c25ab65d65ae3533455af0e7a351851d3"
7+
"sha": "b17e39f2d8ca84335ab85d80372d6a0309a684c6"
88
}
99
},
1010
{
1111
"git": {
1212
"name": "googleapis",
1313
"remote": "https://github.com/googleapis/googleapis.git",
14-
"sha": "fb8f62b6784f43faf4b64179c57ce4b4931b1a00",
15-
"internalRef": "310426317"
14+
"sha": "a175708acd7a367ab3ed120fa562331e1761d825",
15+
"internalRef": "312558019"
1616
}
1717
},
1818
{

0 commit comments

Comments
 (0)