Skip to content

test: Wrap createTestAuthorizedView with retries#2789

Open
trollyxia wants to merge 2 commits intogoogleapis:mainfrom
trollyxia:it
Open

test: Wrap createTestAuthorizedView with retries#2789
trollyxia wants to merge 2 commits intogoogleapis:mainfrom
trollyxia:it

Conversation

@trollyxia
Copy link
Member

Change-Id: I307ff677ffcd007999402b2e55d99226b2be68bc

This is to fix b/477556926.

Change-Id: I307ff677ffcd007999402b2e55d99226b2be68bc
@trollyxia trollyxia requested review from a team as code owners February 18, 2026 17:03
@product-auto-label product-auto-label bot added size: s Pull request size is small. api: bigtable Issues related to the googleapis/java-bigtable API. labels Feb 18, 2026
@mutianf mutianf requested a review from a team as a code owner February 18, 2026 22:39
+ tableId
+ ", retryCount: "
+ retryCount);
Thread.sleep(Duration.ofMinutes(1).toMillis());
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

minute seems heavy handed, how about exponential backoff?

// exponential backoff delay starting at 100ms
int expSleep = 100 * Math.pow(2, retryCount);
Thread.sleep(Math.min(expSleep, TimeUnit.MINUTES.toMillis(1));
``

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

api: bigtable Issues related to the googleapis/java-bigtable API. size: s Pull request size is small.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants

Comments