Skip to content

'test_delete_instance' sample setup flakes with TimeoutError #383

Closed
@tseaver

Description

@tseaver

From this Kokoro run:

    def test_delete_instance(capsys, dispose_of):
        dispose_of(INSTANCE)

        # Can't delete it, it doesn't exist
        instanceadmin.delete_instance(PROJECT, INSTANCE)
        out = capsys.readouterr().out
        assert "Deleting instance" in out
        assert f"Instance {INSTANCE} does not exist" in out

        # Ok, create it then
>       instanceadmin.run_instance_operations(PROJECT, INSTANCE, CLUSTER1)

test_instanceadmin.py:109:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
instanceadmin.py:77: in run_instance_operations
    operation.result(timeout=30)
.nox/py-3-7/lib/python3.7/site-packages/google/api_core/future/polling.py:130: in result
    self._blocking_poll(timeout=timeout, **kwargs)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

self = <google.api_core.operation.Operation object at 0x7f6a44141510>
timeout = 30, retry = <google.api_core.retry.Retry object at 0x7f6a442cefd0>

    def _blocking_poll(self, timeout=None, retry=DEFAULT_RETRY):
        """Poll and wait for the Future to be resolved.

        Args:
            timeout (int):
                How long (in seconds) to wait for the operation to complete.
                If None, wait indefinitely.
        """
        if self._result_set:
            return

        retry_ = self._retry.with_deadline(timeout)

        try:
            kwargs = {} if retry is DEFAULT_RETRY else {"retry": retry}
            retry_(self._done_or_raise)(**kwargs)
        except exceptions.RetryError:
            raise concurrent.futures.TimeoutError(
>               "Operation did not complete within the designated " "timeout."
            )
E           concurrent.futures._base.TimeoutError: Operation did not complete within the designated timeout.

.nox/py-3-7/lib/python3.7/site-packages/google/api_core/future/polling.py:111: TimeoutError

Metadata

Metadata

Assignees

Labels

api: bigtableIssues related to the googleapis/python-bigtable API.samplesIssues that are directly related to samples.type: processA process-related concern. May include testing, release, or the like.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions