Skip to content

test(spanner): unflake StreamingRetryBudgetMockServerTest totalTimeoutExhausted tests - #14475

Merged
sakthivelmanii merged 1 commit into
mainfrom
unflake-streaming-retry-budget-mock-server-test
Sep 22, 2026
Merged

sakthivelmanii merged 1 commit into
mainfrom
unflake-streaming-retry-budget-mock-server-test

Conversation

@sakthivelmanii

Copy link
Copy Markdown
Contributor

When retrying with a total timeout, GAX clamps the RPC timeout of the final attempt to the remaining time. Under thread scheduling contention, this can cause the final attempt to time out with DEADLINE_EXCEEDED instead of returning the mock server's error code.

Update totalTimeoutExhausted_* tests to accept either the expected error code or DEADLINE_EXCEEDED upon total timeout exhaustion.

…tExhausted tests

When retrying with a total timeout, GAX clamps the RPC timeout of the
final attempt to the remaining time. Under thread scheduling contention,
this can cause the final attempt to time out with DEADLINE_EXCEEDED
instead of returning the mock server's error code.

Update totalTimeoutExhausted_* tests to accept either the expected error
code or DEADLINE_EXCEEDED upon total timeout exhaustion.
@sakthivelmanii
sakthivelmanii requested review from a team as code owners September 22, 2026 11:45

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

Copy link
Copy Markdown
Contributor

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 updates the assertions in StreamingRetryBudgetMockServerTest.java to accept DEADLINE_EXCEEDED in addition to UNAVAILABLE or RESOURCE_EXHAUSTED when a total timeout is exhausted. This accommodates GAX's behavior of truncating the per-attempt RPC timeout to the remaining total timeout, which can lead to a deadline expiration on the final attempt. I have no feedback to provide as there are no review comments.

@sakthivelmanii
sakthivelmanii enabled auto-merge (squash) September 22, 2026 12:20
@sakthivelmanii
sakthivelmanii merged commit dfed560 into main Sep 22, 2026
204 checks passed
@sakthivelmanii
sakthivelmanii deleted the unflake-streaming-retry-budget-mock-server-test branch September 22, 2026 16:49
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.

2 participants