Skip to content

Commit

Permalink
feat: add RESOURCE_EXHAUSTED to the list of retryable error codes (#…
Browse files Browse the repository at this point in the history
…2032)

* feat: add `RESOURCE_EXHAUSTED` to the list of retryable error codes

PiperOrigin-RevId: 628281023

Source-Link: googleapis/googleapis@60536a2

Source-Link: googleapis/googleapis-gen@c5cfd5b
Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiYzVjZmQ1Yjk1NmY5ZWFkZmY1NDA5NmM5ZjFjOGE1N2FiMDFkYjI5NCJ9

* 🦉 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
gcf-owl-bot[bot] and gcf-owl-bot[bot] committed Apr 27, 2024
1 parent 8e51a08 commit a4623c5
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 15 deletions.
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,3 @@ system-test/*key.json
.DS_Store
package-lock.json
__pycache__
.vscode
29 changes: 15 additions & 14 deletions src/v1/spanner_client_config.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@
"DEADLINE_EXCEEDED",
"UNAVAILABLE"
],
"unavailable": [
"resource_exhausted_unavailable": [
"RESOURCE_EXHAUSTED",
"UNAVAILABLE"
]
},
Expand All @@ -34,32 +35,32 @@
"methods": {
"CreateSession": {
"timeout_millis": 30000,
"retry_codes_name": "unavailable",
"retry_codes_name": "resource_exhausted_unavailable",
"retry_params_name": "9442ca297df43f7314712e1a19d003838e738a45"
},
"BatchCreateSessions": {
"timeout_millis": 60000,
"retry_codes_name": "unavailable",
"retry_codes_name": "resource_exhausted_unavailable",
"retry_params_name": "9442ca297df43f7314712e1a19d003838e738a45"
},
"GetSession": {
"timeout_millis": 30000,
"retry_codes_name": "unavailable",
"retry_codes_name": "resource_exhausted_unavailable",
"retry_params_name": "9442ca297df43f7314712e1a19d003838e738a45"
},
"ListSessions": {
"timeout_millis": 3600000,
"retry_codes_name": "unavailable",
"retry_codes_name": "resource_exhausted_unavailable",
"retry_params_name": "9442ca297df43f7314712e1a19d003838e738a45"
},
"DeleteSession": {
"timeout_millis": 30000,
"retry_codes_name": "unavailable",
"retry_codes_name": "resource_exhausted_unavailable",
"retry_params_name": "9442ca297df43f7314712e1a19d003838e738a45"
},
"ExecuteSql": {
"timeout_millis": 30000,
"retry_codes_name": "unavailable",
"retry_codes_name": "resource_exhausted_unavailable",
"retry_params_name": "9442ca297df43f7314712e1a19d003838e738a45"
},
"ExecuteStreamingSql": {
Expand All @@ -69,12 +70,12 @@
},
"ExecuteBatchDml": {
"timeout_millis": 30000,
"retry_codes_name": "unavailable",
"retry_codes_name": "resource_exhausted_unavailable",
"retry_params_name": "9442ca297df43f7314712e1a19d003838e738a45"
},
"Read": {
"timeout_millis": 30000,
"retry_codes_name": "unavailable",
"retry_codes_name": "resource_exhausted_unavailable",
"retry_params_name": "9442ca297df43f7314712e1a19d003838e738a45"
},
"StreamingRead": {
Expand All @@ -84,27 +85,27 @@
},
"BeginTransaction": {
"timeout_millis": 30000,
"retry_codes_name": "unavailable",
"retry_codes_name": "resource_exhausted_unavailable",
"retry_params_name": "9442ca297df43f7314712e1a19d003838e738a45"
},
"Commit": {
"timeout_millis": 3600000,
"retry_codes_name": "unavailable",
"retry_codes_name": "resource_exhausted_unavailable",
"retry_params_name": "9442ca297df43f7314712e1a19d003838e738a45"
},
"Rollback": {
"timeout_millis": 30000,
"retry_codes_name": "unavailable",
"retry_codes_name": "resource_exhausted_unavailable",
"retry_params_name": "9442ca297df43f7314712e1a19d003838e738a45"
},
"PartitionQuery": {
"timeout_millis": 30000,
"retry_codes_name": "unavailable",
"retry_codes_name": "resource_exhausted_unavailable",
"retry_params_name": "9442ca297df43f7314712e1a19d003838e738a45"
},
"PartitionRead": {
"timeout_millis": 30000,
"retry_codes_name": "unavailable",
"retry_codes_name": "resource_exhausted_unavailable",
"retry_params_name": "9442ca297df43f7314712e1a19d003838e738a45"
},
"BatchWrite": {
Expand Down

0 comments on commit a4623c5

Please sign in to comment.