You are viewing a plain text version of this content. The canonical link for it is here.
Posted to github@beam.apache.org by GitBox <gi...@apache.org> on 2022/06/07 09:00:46 UTC
[GitHub] [beam] nielm opened a new issue, #21729: [Bug]: Flaky test org.apache.beam.sdk.io.gcp.spanner.SpannerIOWriteExceptionHandlingTest.testExceptionHandlingForWriteGrouped
nielm opened a new issue, #21729:
URL: https://github.com/apache/beam/issues/21729
### What happened?
The test `org.apache.beam.sdk.io.gcp.spanner.SpannerIOWriteExceptionHandlingTest.testExceptionHandlingForWriteGrouped`
([SpannerIOWriteExceptionHandlingTest.java:222](https://github.com/apache/beam/blob/3c623abd631b493c8a71d05fe591065754c75d0c/sdks/java/io/google-cloud-platform/src/test/java/org/apache/beam/sdk/io/gcp/spanner/SpannerIOWriteExceptionHandlingTest.java#L222)) seems to be flaky as a sleeper can be fired more or less times than what is required (I have seen errors with both 8 and 10 times instead of the required 9)
```
> is a org.mockito.exceptions.verification.TooManyActualInvocations
Stacktrace was: org.mockito.exceptions.verification.TooManyActualInvocations:
sleeper.sleep(<any long>);
Wanted 9 times:
-> at org.apache.beam.sdk.io.gcp.spanner.SpannerIOWriteExceptionHandlingTest.testExceptionHandlingForWriteGrouped(SpannerIOWriteExceptionHandlingTest.java:222)
But was 10 times:
```
### Issue Priority
Priority: 2
### Issue Component
Component: io-java-gcp
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: github-unsubscribe@beam.apache.org.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [beam] Abacn commented on issue #21729: [Bug]: Flaky test org.apache.beam.sdk.io.gcp.spanner.SpannerIOWriteExceptionHandlingTest.testExceptionHandlingForWriteGrouped
Posted by GitBox <gi...@apache.org>.
Abacn commented on issue #21729:
URL: https://github.com/apache/beam/issues/21729#issuecomment-1164885457
Comment in SpannerIOWriteExceptionHandlingTest says "The default backoff generates about 9 retries, and then errors out the pipeline." This is not always true. FluentBackoff has randomOffset and it may turned out to generate 8 or 10 retries, with total sleep time equals to the max cumulative time (15 min). This makes the tests having a certain probability to fail.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: github-unsubscribe@beam.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [beam] Abacn commented on issue #21729: [Bug]: Flaky test org.apache.beam.sdk.io.gcp.spanner.SpannerIOWriteExceptionHandlingTest.testExceptionHandlingForWriteGrouped
Posted by GitBox <gi...@apache.org>.
Abacn commented on issue #21729:
URL: https://github.com/apache/beam/issues/21729#issuecomment-1164885571
.take-issue
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: github-unsubscribe@beam.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [beam] Abacn commented on issue #21729: [Bug]: Flaky test org.apache.beam.sdk.io.gcp.spanner.SpannerIOWriteExceptionHandlingTest.testExceptionHandlingForWriteGrouped
Posted by GitBox <gi...@apache.org>.
Abacn commented on issue #21729:
URL: https://github.com/apache/beam/issues/21729#issuecomment-1165661028
duplicates #22008 and there is another solution there
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: github-unsubscribe@beam.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [beam] pabloem closed issue #21729: [Bug]: Flaky test org.apache.beam.sdk.io.gcp.spanner.SpannerIOWriteExceptionHandlingTest.testExceptionHandlingForWriteGrouped
Posted by GitBox <gi...@apache.org>.
pabloem closed issue #21729: [Bug]: Flaky test org.apache.beam.sdk.io.gcp.spanner.SpannerIOWriteExceptionHandlingTest.testExceptionHandlingForWriteGrouped
URL: https://github.com/apache/beam/issues/21729
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: github-unsubscribe@beam.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org