Skip to content

Commit

Permalink
update gapic retry config (#2390)
Browse files Browse the repository at this point in the history
  • Loading branch information
swcloud authored Jun 15, 2017
1 parent f5479f6 commit 3d98532
Show file tree
Hide file tree
Showing 14 changed files with 30 additions and 40 deletions.
4 changes: 1 addition & 3 deletions packages/datastore/src/v1/datastore_client_config.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,7 @@
"DEADLINE_EXCEEDED",
"UNAVAILABLE"
],
"non_idempotent": [
"UNAVAILABLE"
]
"non_idempotent": []
},
"retry_params": {
"default": {
Expand Down
4 changes: 1 addition & 3 deletions packages/dlp/src/v2beta1/dlp_service_client_config.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,7 @@
"DEADLINE_EXCEEDED",
"UNAVAILABLE"
],
"non_idempotent": [
"UNAVAILABLE"
]
"non_idempotent": []
},
"retry_params": {
"default": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,7 @@
"DEADLINE_EXCEEDED",
"UNAVAILABLE"
],
"non_idempotent": [
"UNAVAILABLE"
]
"non_idempotent": []
},
"retry_params": {
"default": {
Expand Down
6 changes: 3 additions & 3 deletions packages/logging/src/v2/logging_service_v2_client_config.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,9 +39,9 @@
"retry_codes_name": "non_idempotent",
"retry_params_name": "default",
"bundling": {
"element_count_threshold": 100,
"request_byte_threshold": 1024,
"delay_threshold_millis": 10
"element_count_threshold": 1000,
"request_byte_threshold": 1048576,
"delay_threshold_millis": 50
}
},
"ListLogEntries": {
Expand Down
4 changes: 1 addition & 3 deletions packages/monitoring/src/v3/group_service_client_config.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,7 @@
"DEADLINE_EXCEEDED",
"UNAVAILABLE"
],
"non_idempotent": [
"UNAVAILABLE"
]
"non_idempotent": []
},
"retry_params": {
"default": {
Expand Down
4 changes: 1 addition & 3 deletions packages/monitoring/src/v3/metric_service_client_config.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,7 @@
"DEADLINE_EXCEEDED",
"UNAVAILABLE"
],
"non_idempotent": [
"UNAVAILABLE"
]
"non_idempotent": []
},
"retry_params": {
"default": {
Expand Down
5 changes: 5 additions & 0 deletions packages/pubsub/src/v1/publisher_client_config.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,12 @@
"UNAVAILABLE"
],
"one_plus_delivery": [
"CANCELLED",
"UNKNOWN",
"DEADLINE_EXCEEDED",
"RESOURCE_EXHAUSTED",
"ABORTED",
"INTERNAL",
"UNAVAILABLE"
],
"non_idempotent": []
Expand Down
13 changes: 10 additions & 3 deletions packages/pubsub/src/v1/subscriber_client_config.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,14 @@
"DEADLINE_EXCEEDED",
"UNAVAILABLE"
],
"non_idempotent": []
"non_idempotent": [],
"pull": [
"CANCELLED",
"DEADLINE_EXCEEDED",
"RESOURCE_EXHAUSTED",
"INTERNAL",
"UNAVAILABLE"
]
},
"retry_params": {
"default": {
Expand Down Expand Up @@ -66,12 +73,12 @@
},
"Pull": {
"timeout_millis": 60000,
"retry_codes_name": "non_idempotent",
"retry_codes_name": "pull",
"retry_params_name": "messaging"
},
"StreamingPull": {
"timeout_millis": 60000,
"retry_codes_name": "non_idempotent",
"retry_codes_name": "pull",
"retry_params_name": "messaging"
},
"ModifyPushConfig": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,7 @@
"DEADLINE_EXCEEDED",
"UNAVAILABLE"
],
"non_idempotent": [
"UNAVAILABLE"
]
"non_idempotent": []
},
"retry_params": {
"default": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,7 @@
"DEADLINE_EXCEEDED",
"UNAVAILABLE"
],
"non_idempotent": [
"UNAVAILABLE"
]
"non_idempotent": []
},
"retry_params": {
"default": {
Expand Down
4 changes: 1 addition & 3 deletions packages/spanner/src/v1/spanner_client_config.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,7 @@
"DEADLINE_EXCEEDED",
"UNAVAILABLE"
],
"non_idempotent": [
"UNAVAILABLE"
]
"non_idempotent": []
},
"retry_params": {
"default": {
Expand Down
6 changes: 2 additions & 4 deletions packages/speech/src/v1/speech_client_config.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,7 @@
"DEADLINE_EXCEEDED",
"UNAVAILABLE"
],
"non_idempotent": [
"UNAVAILABLE"
]
"non_idempotent": []
},
"retry_params": {
"default": {
Expand All @@ -23,7 +21,7 @@
},
"methods": {
"Recognize": {
"timeout_millis": 60000,
"timeout_millis": 190000,
"retry_codes_name": "idempotent",
"retry_params_name": "default"
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,7 @@
"DEADLINE_EXCEEDED",
"UNAVAILABLE"
],
"non_idempotent": [
"UNAVAILABLE"
]
"non_idempotent": []
},
"retry_params": {
"default": {
Expand Down
4 changes: 1 addition & 3 deletions packages/vision/src/v1/image_annotator_client_config.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,7 @@
"DEADLINE_EXCEEDED",
"UNAVAILABLE"
],
"non_idempotent": [
"UNAVAILABLE"
]
"non_idempotent": []
},
"retry_params": {
"default": {
Expand Down

0 comments on commit 3d98532

Please sign in to comment.