Skip to content

Spanner system test timeout #5629

@tseaver

Description

@tseaver

See: https://circleci.com/gh/GoogleCloudPlatform/google-cloud-python/7224

___________________ TestDatabaseAPI.test_update_database_ddl ___________________

self = <tests.system.test_system.TestDatabaseAPI testMethod=test_update_database_ddl>

    def test_update_database_ddl(self):
        pool = BurstyPool()
        temp_db_id = 'temp_db' + unique_resource_id('_')
        temp_db = Config.INSTANCE.database(temp_db_id, pool=pool)
        create_op = temp_db.create()
        self.to_delete.append(temp_db)
    
        # We want to make sure the operation completes.
        create_op.result(120)  # raises on failure / timeout.
    
        operation = temp_db.update_ddl(DDL_STATEMENTS)
    
        # We want to make sure the operation completes.
>       operation.result(120)  # raises on failure / timeout.

tests/system/test_system.py:320: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
../.nox/sys-2-7/lib/python2.7/site-packages/google/api_core/future/polling.py:115: in result
    self._blocking_poll(timeout=timeout)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <google.api_core.operation.Operation object at 0x7f4604191d10>
timeout = 120

    def _blocking_poll(self, timeout=None):
        """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:
            retry_(self._done_or_raise)()
        except exceptions.RetryError:
            raise concurrent.futures.TimeoutError(
>               'Operation did not complete within the designated '
                'timeout.')
E           TimeoutError: Operation did not complete within the designated timeout.

Metadata

Metadata

Assignees

Labels

api: spannerIssues related to the Spanner API.flakytestingtype: 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