GeezerVison is showing github.com — spanner.cloud-client.backup_sample_test: test_update_backup failed · Issue #3241 · GoogleCloudPlatform/python-docs-samples
spanner.cloud-client.backup_sample_test: test_update_backup failed #3241Labels api: spannerIssues related to the Spanner API.priority: p2Moderately-important priority. Fix may not be included in next release.type: bugError or flaw in code with unintended results or allowing sub-optimal usage patterns. Activityadded priority: p1Important issue which blocks shipping the next release. Will be fixed prior to next release. type: bugError or flaw in code with unintended results or allowing sub-optimal usage patterns. on Mar 31, 2020flaky-bot commented on Apr 1, 2020 flaky-bot commented on Apr 1, 2020 Looks like this issue is flaky. 😟
I'm going to leave this open and stop commenting.
A human should fix and close this.
commit: e943bff
buildURL: Build Status, Sponge
status: failed tmatsuo commented on Apr 27, 2020 It seems like the default timeout for create_backup is 30 seconds.
We can add timeout parameter to create_backup call for mitigating the test failure, but it is also too long for the server to return a Long Running Operation. If the server is expected to take more than 30 seconds frequently enough (currently it seems like so), we should change the client library's default value.
@larkee WDYT?
Update: There is a new config for the timeout. I filed googleapis/python-spanner#68 added priority: p2Moderately-important priority. Fix may not be included in next release. and removed priority: p1Important issue which blocks shipping the next release. Will be fixed prior to next release. on Apr 27, 2020tmatsuo commented on Apr 27, 2020 flaky-bot commented on May 6, 2020 Oops! Looks like this issue is still flaky. It failed again. 😬
I reopened the issue, but a human will need to close it again.
commit: 32777eb
buildURL: Build Status, Sponge
status: failed
Test output
Traceback (most recent call last):
File "/tmpfs/src/github/python-docs-samples/spanner/cloud-client/.nox/py-3-8/lib/python3.8/site-packages/google/api_core/grpc_helpers.py", line 57, in error_remapped_callable
return callable_(*args, **kwargs)
File "/tmpfs/src/github/python-docs-samples/spanner/cloud-client/.nox/py-3-8/lib/python3.8/site-packages/grpc/_channel.py", line 826, in __call__
return _end_unary_response_blocking(state, call, False, None)
File "/tmpfs/src/github/python-docs-samples/spanner/cloud-client/.nox/py-3-8/lib/python3.8/site-packages/grpc/_channel.py", line 729, in _end_unary_response_blocking
raise _InactiveRpcError(state)
grpc._channel._InactiveRpcError: <_InactiveRpcError of RPC that terminated with:
status = StatusCode.DEADLINE_EXCEEDED
details = "Deadline Exceeded"
debug_error_string = "{"created":"@1588771706.167677943","description":"Error received from peer ipv4:108.177.112.95:443","file":"src/core/lib/surface/call.cc","file_line":1056,"grpc_message":"Deadline Exceeded","grpc_status":4}"
>
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/tmpfs/src/github/python-docs-samples/spanner/cloud-client/backup_sample_test.py", line 97, in test_update_backup
backup_sample.update_backup(INSTANCE_ID, BACKUP_ID)
File "/tmpfs/src/github/python-docs-samples/spanner/cloud-client/backup_sample.py", line 232, in update_backup
backup.update_expire_time(new_expire_time)
File "/tmpfs/src/github/python-docs-samples/spanner/cloud-client/.nox/py-3-8/lib/python3.8/site-packages/google/cloud/spanner_v1/backup.py", line 249, in update_expire_time
api.update_backup(backup_update, update_mask, metadata=metadata)
File "/tmpfs/src/github/python-docs-samples/spanner/cloud-client/.nox/py-3-8/lib/python3.8/site-packages/google/cloud/spanner_admin_database_v1/gapic/database_admin_client.py", line 1192, in update_backup
return self._inner_api_calls["update_backup"](
File "/tmpfs/src/github/python-docs-samples/spanner/cloud-client/.nox/py-3-8/lib/python3.8/site-packages/google/api_core/gapic_v1/method.py", line 143, in call
return wrapped_func(*args, **kwargs)
File "/tmpfs/src/github/python-docs-samples/spanner/cloud-client/.nox/py-3-8/lib/python3.8/site-packages/google/api_core/retry.py", line 281, in retry_wrapped_func
return retry_target(
File "/tmpfs/src/github/python-docs-samples/spanner/cloud-client/.nox/py-3-8/lib/python3.8/site-packages/google/api_core/retry.py", line 184, in retry_target
return target()
File "/tmpfs/src/github/python-docs-samples/spanner/cloud-client/.nox/py-3-8/lib/python3.8/site-packages/google/api_core/timeout.py", line 214, in func_with_timeout
return func(*args, **kwargs)
File "/tmpfs/src/github/python-docs-samples/spanner/cloud-client/.nox/py-3-8/lib/python3.8/site-packages/google/api_core/grpc_helpers.py", line 59, in error_remapped_callable
six.raise_from(exceptions.from_grpc_error(exc), exc)
File "", line 3, in raise_from
google.api_core.exceptions.DeadlineExceeded: 504 Deadline Exceeded tmatsuo commented on May 6, 2020 The last build failure is:
Traceback (most recent call last):
File "/tmpfs/src/github/python-docs-samples/spanner/cloud-client/.nox/py-3-8/lib/python3.8/site-packages/google/api_core/grpc_helpers.py", line 57, in error_remapped_callable
return callable_(*args, **kwargs)
File "/tmpfs/src/github/python-docs-samples/spanner/cloud-client/.nox/py-3-8/lib/python3.8/site-packages/grpc/_channel.py", line 826, in __call__
return _end_unary_response_blocking(state, call, False, None)
File "/tmpfs/src/github/python-docs-samples/spanner/cloud-client/.nox/py-3-8/lib/python3.8/site-packages/grpc/_channel.py", line 729, in _end_unary_response_blocking
raise _InactiveRpcError(state)
grpc._channel._InactiveRpcError: <_InactiveRpcError of RPC that terminated with:
status = StatusCode.DEADLINE_EXCEEDED
details = "Deadline Exceeded"
debug_error_string = "{"created":"@1588771706.167677943","description":"Error received from peer ipv4:108.177.112.95:443","file":"src/core/lib/surface/call.cc","file_line":1056,"grpc_message":"Deadline Exceeded","grpc_status":4}"
>
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/tmpfs/src/github/python-docs-samples/spanner/cloud-client/backup_sample_test.py", line 97, in test_update_backup
backup_sample.update_backup(INSTANCE_ID, BACKUP_ID)
File "/tmpfs/src/github/python-docs-samples/spanner/cloud-client/backup_sample.py", line 232, in update_backup
backup.update_expire_time(new_expire_time)
File "/tmpfs/src/github/python-docs-samples/spanner/cloud-client/.nox/py-3-8/lib/python3.8/site-packages/google/cloud/spanner_v1/backup.py", line 249, in update_expire_time
api.update_backup(backup_update, update_mask, metadata=metadata)
File "/tmpfs/src/github/python-docs-samples/spanner/cloud-client/.nox/py-3-8/lib/python3.8/site-packages/google/cloud/spanner_admin_database_v1/gapic/database_admin_client.py", line 1192, in update_backup
return self._inner_api_calls["update_backup"](
File "/tmpfs/src/github/python-docs-samples/spanner/cloud-client/.nox/py-3-8/lib/python3.8/site-packages/google/api_core/gapic_v1/method.py", line 143, in __call__
return wrapped_func(*args, **kwargs)
File "/tmpfs/src/github/python-docs-samples/spanner/cloud-client/.nox/py-3-8/lib/python3.8/site-packages/google/api_core/retry.py", line 281, in retry_wrapped_func
return retry_target(
File "/tmpfs/src/github/python-docs-samples/spanner/cloud-client/.nox/py-3-8/lib/python3.8/site-packages/google/api_core/retry.py", line 184, in retry_target
return target()
File "/tmpfs/src/github/python-docs-samples/spanner/cloud-client/.nox/py-3-8/lib/python3.8/site-packages/google/api_core/timeout.py", line 214, in func_with_timeout
return func(*args, **kwargs)
File "/tmpfs/src/github/python-docs-samples/spanner/cloud-client/.nox/py-3-8/lib/python3.8/site-packages/google/api_core/grpc_helpers.py", line 59, in error_remapped_callable
six.raise_from(exceptions.from_grpc_error(exc), exc)
File "<string>", line 3, in raise_from
google.api_core.exceptions.DeadlineExceeded: 504 Deadline Exceeded
tmatsuo commented on May 6, 2020 The current deadline is 30 seconds for UpdateBackup.
I'll talk with the Spanner folks to decide how to handle this case. tmatsuo commented on May 7, 2020 The spanner team is going to bump the deadline, so we don't have any action items other than wait for the next release. tmatsuo commented on May 27, 2020 Got the new release, closing
MetadataMetadataapi: spannerIssues related to the Spanner API.priority: p2Moderately-important priority. Fix may not be included in next release.type: bugError or flaw in code with unintended results or allowing sub-optimal usage patterns. DevelopmentNo branches or pull requestsIssue actions
|