From 5ee6f19f6dd6fee0d48e692242e99c1966bb8df6 Mon Sep 17 00:00:00 2001 From: danieljbruce Date: Wed, 15 Mar 2023 16:52:30 -0400 Subject: [PATCH] fix: Always set the retry attempt to 0 for now (#1251) * 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. * 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,