Skip to content

Conversation

@olavloite
Copy link
Collaborator

The backup operations can still fail because of too many pending operations. It would retry 10 times with waiting 60 seconds between each attempt, but that does not seem to be enough. The max attempts has therefore been increased to 20 and better logging has been created by throwing a custom exception when it happens. The previous log was not visible, because the sample runners are redirecting the standard out to a string.

Fixes #1019

The backup operations can still fail because of too many pending
operations. It would retry 10 times with waiting 60 seconds between
each attempt, but that does not seem to be enough. The max attempts
has therefore been increased to 20 and better logging has been
created by throwing a custom exception when it happens. The previous
log was not visible, because the sample runners are redirecting the
standard out to a string.

Fixes #1019
@olavloite olavloite requested a review from thiagotnunes April 30, 2021 13:35
@olavloite olavloite requested a review from a team as a code owner April 30, 2021 13:35
@olavloite olavloite requested a review from a team April 30, 2021 13:35
@product-auto-label product-auto-label bot added the api: spanner Issues related to the googleapis/java-spanner API. label Apr 30, 2021
@google-cla google-cla bot added the cla: yes This human has signed the Contributor License Agreement. label Apr 30, 2021
@codecov
Copy link

codecov bot commented Apr 30, 2021

Codecov Report

Merging #1117 (2a12d0a) into master (7001030) will increase coverage by 0.01%.
The diff coverage is n/a.

Impacted file tree graph

@@             Coverage Diff              @@
##             master    #1117      +/-   ##
============================================
+ Coverage     84.98%   84.99%   +0.01%     
- Complexity     2727     2728       +1     
============================================
  Files           156      156              
  Lines         14416    14416              
  Branches       1381     1381              
============================================
+ Hits          12251    12253       +2     
  Misses         1594     1594              
+ Partials        571      569       -2     
Impacted Files Coverage Δ Complexity Δ
...m/google/cloud/spanner/connection/SpannerPool.java 87.16% <0.00%> (-0.54%) 33.00% <0.00%> (ø%)
...ain/java/com/google/cloud/spanner/SessionPool.java 89.21% <0.00%> (+0.19%) 75.00% <0.00%> (ø%)
.../google/cloud/spanner/AbstractLazyInitializer.java 100.00% <0.00%> (+7.14%) 5.00% <0.00%> (+1.00%)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 7001030...2a12d0a. Read the comment docs.

@thiagotnunes thiagotnunes merged commit 6c24845 into master May 3, 2021
@thiagotnunes thiagotnunes deleted the retry-backup-operation branch May 3, 2021 02:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

api: spanner Issues related to the googleapis/java-spanner API. cla: yes This human has signed the Contributor License Agreement.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

com.example.spanner.EncryptionKeyIT: testEncryptedDatabaseAndBackupAndRestore failed

2 participants