GeezerVison is showing github.com — fix: flaky test issue due to AbortedException. by arpan14 · Pull Request #2925 · googleapis/java-spanner
This repository was archived by the owner on Aug 30, 2026. It is now read-only.
Conversation
arpan14
commented
Feb 23, 2024
•
edited
Loading
Uh oh!
There was an error while loading. Please reload this page.
Fixes - #2133
By default AbortedException is not a retryable exception and hence getRetryDelayInMillis() will return -1. Hence, removing the assertion statement.
Error Trace
Caused by: expected not to be: -1
at com.google.cloud.spanner.it.ITTransactionTest.lambda$readAbort$7(ITTransactionTest.java:341)
at com.google.cloud.spanner.TransactionRunnerImpl.lambda$runInternal$0(TransactionRunnerImpl.java:986)
at com.google.api.gax.retrying.DirectRetryingExecutor.submit(DirectRetryingExecutor.java:103)
at com.google.cloud.RetryHelper.run(RetryHelper.java:76)
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
…od while retrying exceptions in unit tests.
* For details on issue see - googleapis#2206
fix: prevent illegal negative timeout values into thread sleep() method while retrying exceptions in unit tests.
Reviewers
1 more reviewer
Reviewers whose approvals may not affect merge requirements
Uh oh!
There was an error while loading. Please reload this page.
Assignees
No one assigned
Labels
api: spanner
Issues related to the googleapis/java-spanner API.
size: xs
Pull request size is extra small.
Milestone
No milestone
Development
Successfully merging this pull request may close these issues.
Uh oh!
There was an error while loading. Please reload this page.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.