Skip to content
This repository was archived by the owner on Nov 12, 2025. It is now read-only.

Commit 3816961

Browse files
yoshi-automationtswast
authored andcommitted
Increase default deadline on ReadRows. (#8030)
This prevents frequent DEADLINE_EXCEEDED errors and unneeded resumptions.
1 parent 09ace42 commit 3816961

2 files changed

Lines changed: 15 additions & 5 deletions

File tree

google/cloud/bigquery_storage_v1beta1/gapic/big_query_storage_client_config.py

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
"retry_codes": {
55
"idempotent": ["DEADLINE_EXCEEDED", "UNAVAILABLE"],
66
"non_idempotent": [],
7+
"unary_streaming": ["UNAVAILABLE"],
78
},
89
"retry_params": {
910
"default": {
@@ -24,6 +25,15 @@
2425
"max_rpc_timeout_millis": 120000,
2526
"total_timeout_millis": 600000,
2627
},
28+
"read_rows": {
29+
"initial_retry_delay_millis": 100,
30+
"retry_delay_multiplier": 1.3,
31+
"max_retry_delay_millis": 60000,
32+
"initial_rpc_timeout_millis": 86400000,
33+
"rpc_timeout_multiplier": 1.0,
34+
"max_rpc_timeout_millis": 86400000,
35+
"total_timeout_millis": 86400000,
36+
},
2737
},
2838
"methods": {
2939
"CreateReadSession": {
@@ -33,8 +43,8 @@
3343
},
3444
"ReadRows": {
3545
"timeout_millis": 86400000,
36-
"retry_codes_name": "idempotent",
37-
"retry_params_name": "default",
46+
"retry_codes_name": "unary_streaming",
47+
"retry_params_name": "read_rows",
3848
},
3949
"BatchCreateReadSessionStreams": {
4050
"timeout_millis": 60000,

synth.metadata

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"updateTime": "2019-05-10T12:15:05.677870Z",
2+
"updateTime": "2019-05-18T12:14:20.373269Z",
33
"sources": [
44
{
55
"generator": {
@@ -12,8 +12,8 @@
1212
"git": {
1313
"name": "googleapis",
1414
"remote": "https://github.com/googleapis/googleapis.git",
15-
"sha": "07883be5bf3c3233095e99d8e92b8094f5d7084a",
16-
"internalRef": "247530843"
15+
"sha": "64f0053af0c24d817ec44278c8b4513f6cfd77ff",
16+
"internalRef": "248810317"
1717
}
1818
}
1919
],

0 commit comments

Comments
 (0)