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
Changes from 2 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
Original file line number Diff line number Diff line change
Expand Up @@ -468,11 +468,7 @@ 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 is expected as it cannot find the backup that we are trying to restore.
rajatbhatta marked this conversation as resolved.
Show resolved Hide resolved
}
// Assert that the RestoreDatabase RPC was called only once, and that the operation
// tracking was resumed through a GetOperation call.
Expand Down