Skip to content

test_throttling/test.py::test_remote_read_throttling_reload is flaky #86963

@evillique

Description

@evillique

Report: https://s3.amazonaws.com/clickhouse-test-reports/json.html?PR=86845&sha=latest&name_0=PR&name_1=Integration+tests+%28amd_asan%2C+old+analyzer%2C+5%2F6%29

=================================== FAILURES ===================================
______________________ test_remote_read_throttling_reload ______________________
[gw3] linux -- Python 3.10.12 /usr/bin/python3

    def test_remote_read_throttling_reload():
        node.query(
            f"""
            drop table if exists data;
            create table data (key UInt64 CODEC(NONE)) engine=MergeTree() order by tuple() settings min_bytes_for_wide_part=1e9, storage_policy='s3';
            insert into data select * from numbers(1e6);
        """
        )
        # without bandwidth limit
        _, took = elapsed(node.query, f"select * from data")
        assert_took(took, 0)
    
        # add bandwidth limit and reload config on fly
        node_update_config(
            "server", "max_remote_read_network_bandwidth_for_server", "2M", False
        )
        node.query("SYSTEM RELOAD CONFIG")
    
        # reading 1e6*8 bytes with 2M default bandwidth should take (8-2)/2=3 seconds
        _, took = elapsed(node.query, f"select * from data")
        assert_took(took, 3)
    
        # update bandwidth back to 0
        node_update_config(
            "server", "max_remote_read_network_bandwidth_for_server", "0", False
        )
        node.query("SYSTEM RELOAD CONFIG")
    
        _, took = elapsed(node.query, f"select * from data")
>       assert took < 1
E       assert 1.0218348503112793 < 1

test_throttling/test.py:401: AssertionError
----------------------------- Captured stderr call -----------------------------

Metadata

Metadata

Assignees

No one assigned

    Labels

    flaky testflaky test found by CI

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions