Conversation

thiagotnunes

Since the backup tests are very expensive, here we exercise the PITR functionality along with the existing backup tests. We also remove the dedicated backup tests for PITR.

Fixes #948

Since the backup tests are very expensive, here we exercise the PITR
functionality along with the existing backup tests. We also remove the
dedicated backup tests for PITR.
@thiagotnunesthiagotnunes requested a review from a team as a code owner March 15, 2021 03:30
@google-clagoogle-cla bot added the cla: yesThis human has signed the Contributor License Agreement.label Mar 15, 2021
@product-auto-labelproduct-auto-label bot added the api: spannerIssues related to the googleapis/java-spanner API.label Mar 15, 2021
@codecov

Codecov Report

Merging #956 (a038b11) into master (39007f6) will increase coverage by 0.02%.
The diff coverage is n/a.

Impacted file tree graph

@@             Coverage Diff              @@
##             master     #956      +/-   ##
============================================
+ Coverage     85.19%   85.22%   +0.02%     
- Complexity     2648     2651       +3     
============================================
  Files           145      145              
  Lines         14358    14358              
  Branches       1391     1391              
============================================
+ Hits          12233    12237       +4     
+ Misses         1543     1541       -2     
+ Partials        582      580       -2     
Impacted FilesCoverage ΔComplexity Δ
.../com/google/cloud/spanner/AbstractReadContext.java87.16% <0.00%> (+0.29%)49.00% <0.00%> (+1.00%)
...m/google/cloud/spanner/connection/SpannerPool.java87.89% <0.00%> (+0.52%)33.00% <0.00%> (ø%)
...ud/spanner/SessionPoolAsyncTransactionManager.java87.21% <0.00%> (+1.50%)14.00% <0.00%> (+2.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 39007f6...a038b11. Read the comment docs.

try {
return operation.get();
} catch (ExecutionException e) {
if (e.getCause() != null && e.getCause() instanceof SpannerException) {
Copy link
Collaborator

Choose a reason for hiding this comment

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

nit: null-check is redundant, as null instanceof whatever always returns false

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Thanks, fixed it.

@thiagotnunesthiagotnunes merged commit 13c297b into googleapis:master Mar 15, 2021
@thiagotnunesthiagotnunes deleted the unify-backup-tests branch March 15, 2021 23:52
Sign up for free to join this conversation on . Already have an account? Sign in to comment
api: spannerIssues related to the googleapis/java-spanner API.cla: yesThis human has signed the Contributor License Agreement.
None yet

Successfully merging this pull request may close these issues.

spanner.it.ITPitrBackupAndRestore: backupCreationWithVersionTimeWithinVersionRetentionPeriodSucceeds failed