From a4623c560c16fa1f37a06cb57a5e47a1d6759d27 Mon Sep 17 00:00:00 2001 From: "gcf-owl-bot[bot]" <78513119+gcf-owl-bot[bot]@users.noreply.github.com> Date: Fri, 26 Apr 2024 17:09:17 -0700 Subject: [PATCH] feat: add `RESOURCE_EXHAUSTED` to the list of retryable error codes (#2032) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * feat: add `RESOURCE_EXHAUSTED` to the list of retryable error codes PiperOrigin-RevId: 628281023 Source-Link: https://github.com/googleapis/googleapis/commit/60536a2a263b6d33b0b1adb5b10c10e34ccf4528 Source-Link: https://github.com/googleapis/googleapis-gen/commit/c5cfd5b956f9eadff54096c9f1c8a57ab01db294 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 --- .gitignore | 1 - src/v1/spanner_client_config.json | 29 +++++++++++++++-------------- 2 files changed, 15 insertions(+), 15 deletions(-) diff --git a/.gitignore b/.gitignore index 14050d4e4..d4f03a0df 100644 --- a/.gitignore +++ b/.gitignore @@ -12,4 +12,3 @@ system-test/*key.json .DS_Store package-lock.json __pycache__ -.vscode \ No newline at end of file diff --git a/src/v1/spanner_client_config.json b/src/v1/spanner_client_config.json index f1ed7096b..3d5086946 100644 --- a/src/v1/spanner_client_config.json +++ b/src/v1/spanner_client_config.json @@ -7,7 +7,8 @@ "DEADLINE_EXCEEDED", "UNAVAILABLE" ], - "unavailable": [ + "resource_exhausted_unavailable": [ + "RESOURCE_EXHAUSTED", "UNAVAILABLE" ] }, @@ -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": { @@ -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": { @@ -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": {