Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
fix: wrong use of getRetryDelayInMillis() / 1000 in documentation and…
… retry loops (#885) Both the documentation for `TransactionManager` as well as some internal retry loops wrongly used `SpannerException#getRetryDelayInMillis() / 1000` as input for `Thread.sleep(long)`. The retry delay is already in milliseconds and should not be modified. Fixes #874
- Loading branch information
Showing
with
186 additions
and 93 deletions.
- +21 −21 google-cloud-spanner/src/main/java/com/google/cloud/spanner/DatabaseClient.java
- +11 −3 google-cloud-spanner/src/main/java/com/google/cloud/spanner/SessionPool.java
- +24 −0 google-cloud-spanner/src/main/java/com/google/cloud/spanner/SpannerExceptionFactory.java
- +29 −15 google-cloud-spanner/src/main/java/com/google/cloud/spanner/TransactionRunnerImpl.java
- +4 −1 google-cloud-spanner/src/main/java/com/google/cloud/spanner/connection/ReadWriteTransaction.java
- +1 −1 google-cloud-spanner/src/test/java/com/google/cloud/spanner/AsyncTransactionManagerTest.java
- +2 −2 google-cloud-spanner/src/test/java/com/google/cloud/spanner/DatabaseClientImplTest.java
- +1 −1 google-cloud-spanner/src/test/java/com/google/cloud/spanner/MockSpannerServiceImpl.java
- +15 −15 google-cloud-spanner/src/test/java/com/google/cloud/spanner/RetryOnInvalidatedSessionTest.java
- +11 −11 google-cloud-spanner/src/test/java/com/google/cloud/spanner/TransactionManagerAbortedTest.java
- +20 −11 ...loud-spanner/src/test/java/com/google/cloud/spanner/connection/ConnectionAsyncApiAbortedTest.java
- +18 −1 google-cloud-spanner/src/test/java/com/google/cloud/spanner/connection/ITAbstractSpannerTest.java
- +20 −2 google-cloud-spanner/src/test/java/com/google/cloud/spanner/connection/ReadWriteTransactionTest.java
- +1 −1 google-cloud-spanner/src/test/java/com/google/cloud/spanner/it/ITClosedSessionTest.java
- +4 −4 google-cloud-spanner/src/test/java/com/google/cloud/spanner/it/ITTransactionManagerAsyncTest.java
- +4 −4 google-cloud-spanner/src/test/java/com/google/cloud/spanner/it/ITTransactionManagerTest.java
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.