Skip to content

test(datastore): Retry QuerySplitter's getSplits for flaky calls#13390

Merged
lqiu96 merged 10 commits into
mainfrom
fix-issue-487120017
Jun 8, 2026
Merged

test(datastore): Retry QuerySplitter's getSplits for flaky calls#13390
lqiu96 merged 10 commits into
mainfrom
fix-issue-487120017

Conversation

@lqiu96
Copy link
Copy Markdown
Member

@lqiu96 lqiu96 commented Jun 8, 2026

Fixes: #11981

@lqiu96 lqiu96 requested a review from jinseopkim0 June 8, 2026 15:58
@lqiu96 lqiu96 requested review from a team as code owners June 8, 2026 15:59
Copy link
Copy Markdown
Contributor

@gemini-code-assist gemini-code-assist Bot left a comment

Choose a reason for hiding this comment

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

Code Review

This pull request introduces retry logic using the GAX retrying framework in integration tests for both the datastore-v1-proto-client and google-cloud-datastore-utils modules to handle transient backend errors. It adds the com.google.api:gax dependency in test scope and implements helper methods runWithRetry and getSplitsWithRetry. The review feedback suggests improving exception handling in runWithRetry by unwrapping ExecutionException to report the actual underlying cause and properly handling InterruptedException by restoring the thread's interrupted status.

@lqiu96 lqiu96 enabled auto-merge (squash) June 8, 2026 16:53
@lqiu96 lqiu96 merged commit 0d1d8f6 into main Jun 8, 2026
180 of 181 checks passed
@lqiu96 lqiu96 deleted the fix-issue-487120017 branch June 8, 2026 17:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[java-datastore] com.google.datastore.v1.client.it.ITDatastoreProtoClientTest: testQuerySplitterWithDefaultDb failed

2 participants