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_delete_instance' sample setup flakes with TimeoutError #383

Closed
tseaver opened this issue Jul 20, 2021 · 1 comment · Fixed by #384 or #452
Closed

'test_delete_instance' sample setup flakes with TimeoutError #383

tseaver opened this issue Jul 20, 2021 · 1 comment · Fixed by #384 or #452
Assignees
Labels
api: bigtable Issues related to the googleapis/python-bigtable API. samples Issues that are directly related to samples. type: process A process-related concern. May include testing, release, or the like.

Comments

@tseaver
Copy link
Contributor

tseaver commented Jul 20, 2021

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
@tseaver tseaver added the type: process A process-related concern. May include testing, release, or the like. label Jul 20, 2021
@tseaver tseaver self-assigned this Jul 20, 2021
@product-auto-label product-auto-label bot added api: bigtable Issues related to the googleapis/python-bigtable API. samples Issues that are directly related to samples. labels Jul 20, 2021
@tseaver
Copy link
Contributor Author

tseaver commented Oct 19, 2021

Failed again today.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
api: bigtable Issues related to the googleapis/python-bigtable API. samples Issues that are directly related to samples. type: process A process-related concern. May include testing, release, or the like.
Projects
None yet
1 participant