-
Notifications
You must be signed in to change notification settings - Fork 8.3k
test_throttling/test.py::test_remote_read_throttling_reload is flaky #86963
Copy link
Copy link
Closed
Labels
flaky testflaky test found by CIflaky test found by CI
Description
=================================== 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 -----------------------------
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
flaky testflaky test found by CIflaky test found by CI