From 6d46a05ca2f8334211a9ba49a10ef1260d1572bd Mon Sep 17 00:00:00 2001 From: Daniel Bruce Date: Mon, 13 Mar 2023 14:24:33 -0400 Subject: [PATCH 1/2] Always set the retry attempt to 0 for now If the retry attempt is greater than 1 then a library called retryRequest creates a large delay. If we force the retry count to be 0 then we skip this delay and the requests run in the required timeline. --- src/table.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/table.ts b/src/table.ts index e744c9855..7149c95e4 100644 --- a/src/table.ts +++ b/src/table.ts @@ -776,7 +776,7 @@ Please use the format 'prezzy' or '${instance.name}/tables/prezzy'.`); } as google.bigtable.v2.IReadRowsRequest; const retryOpts = { - currentRetryAttempt: numConsecutiveErrors, + currentRetryAttempt: 0, // was numConsecutiveErrors // Handling retries in this client. Specify the retry options to // make sure nothing is retried in retry-request. noResponseRetries: 0, From 8157de41a788b6953c9fd7d0dc0acca228f50330 Mon Sep 17 00:00:00 2001 From: Daniel Bruce Date: Mon, 13 Mar 2023 14:24:33 -0400 Subject: [PATCH 2/2] fix: Always set the retry attempt to 0 for now --- src/table.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/table.ts b/src/table.ts index e744c9855..7149c95e4 100644 --- a/src/table.ts +++ b/src/table.ts @@ -776,7 +776,7 @@ Please use the format 'prezzy' or '${instance.name}/tables/prezzy'.`); } as google.bigtable.v2.IReadRowsRequest; const retryOpts = { - currentRetryAttempt: numConsecutiveErrors, + currentRetryAttempt: 0, // was numConsecutiveErrors // Handling retries in this client. Specify the retry options to // make sure nothing is retried in retry-request. noResponseRetries: 0,