Skip to content

'test_scale_bigtable' flakes on AssertionError #108

@tseaver

Description

@tseaver

From this Kokoro build:

_____________________________ test_scale_bigtable ______________________________

instance = <google.cloud.bigtable.instance.Instance object at 0x7f3490cb2490>

    def test_scale_bigtable(instance):
        bigtable_client = bigtable.Client(admin=True)

        instance = bigtable_client.instance(BIGTABLE_INSTANCE)
        instance.reload()

        cluster = instance.cluster(BIGTABLE_INSTANCE)
        cluster.reload()
        original_node_count = cluster.serve_nodes

        scale_bigtable(BIGTABLE_INSTANCE, BIGTABLE_INSTANCE, True)

        for n in range(10):
            time.sleep(10)
            cluster.reload()
            new_node_count = cluster.serve_nodes
            try:
>               assert (new_node_count == (original_node_count + SIZE_CHANGE_STEP))
E               assert 1 == (1 + 3)

metricscaler_test.py:122: AssertionError
----------------------------- Captured stderr call -----------------------------
Scaled up from 1 to 4 nodes.
------------------------------ Captured log call -------------------------------
INFO     bigtable.metricscaler:metricscaler.py:121 Scaled up from 1 to 4 nodes.

Metadata

Metadata

Assignees

Labels

api: bigtableIssues related to the googleapis/python-bigtable API.testingtype: 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