Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

tests: fixes SpannerIO unavailable retry test #23748

Merged

Conversation

thiagotnunes
Copy link
Contributor

The failing test exercises the retry mechanism of the Cloud Spanner client when receiving UNAVAILABLE exceptions. Since this error is retried forever, the test is configured to retry for a while and cancel the pipeline. The wait time was too low and no requests were retried.

Here we update the wait time from 5ms to 500ms, which gives the pipeline more time to retry requests.

Fixes #21533

The failing test exercises the retry mechanism of the Cloud Spanner
client when receiving UNAVAILABLE exceptions. Since this error is
retried forever, the test is configured to retry for a while and cancel
the pipeline. The wait time was too low and no requests were retried.

Here we update the wait time from 5ms to 500ms, which gives the pipeline
more time to retry requests.

Fixes apache#21533
@github-actions
Copy link
Contributor

Assigning reviewers. If you would like to opt out of this review, comment assign to next reviewer:

R: @lukecwik for label java.
R: @Abacn for label io.

Available commands:

  • stop reviewer notifications - opt out of the automated review tooling
  • remind me after tests pass - tag the comment author after tests pass
  • waiting on author - shift the attention set back to the author (any comment or push by the author will return the attention set to the reviewers)

The PR bot will only process comments in the main thread (not review comments).

Copy link
Contributor

@Abacn Abacn left a comment

Choose a reason for hiding this comment

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

@kennknowles
Copy link
Member

Locally when I increased it to 1000 millis I still had the error. But if this works for you and in CI then I trust I just had confused myself!

@kennknowles
Copy link
Member

Thank you!

@kennknowles kennknowles merged commit 12a3e4a into apache:master Oct 20, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

SpannerChangeStreamErrorTest.testUnavailableExceptionRetries hard failure (disabled)
3 participants