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

test: ignore all exceptions from CancelOperation #1713

Merged
merged 6 commits into from
Feb 24, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -56,13 +56,13 @@ implementation 'com.google.cloud:google-cloud-spanner'
If you are using Gradle without BOM, add this to your dependencies

```Groovy
implementation 'com.google.cloud:google-cloud-spanner:6.19.1'
implementation 'com.google.cloud:google-cloud-spanner:6.20.0'
```

If you are using SBT, add this to your dependencies

```Scala
libraryDependencies += "com.google.cloud" % "google-cloud-spanner" % "6.19.1"
libraryDependencies += "com.google.cloud" % "google-cloud-spanner" % "6.20.0"
```

## Authentication
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -468,11 +468,8 @@ public void test02_RetryNonIdempotentRpcsReturningLongRunningOperations() throws
try {
client.cancelOperation(op.getName());
} catch (SpannerException e) {
// Ignore UNIMPLEMENTED errors, as it seems that Cloud Spanner cannot cancel a restore
// operation that has already started.
if (e.getErrorCode() != ErrorCode.UNIMPLEMENTED) {
throw e;
}
// Ignore, this can happen, as the restore operation sometimes fails to start if there
// is already a restore operation running on the instance.
}
// Assert that the RestoreDatabase RPC was called only once, and that the operation
// tracking was resumed through a GetOperation call.
Expand Down