-
Notifications
You must be signed in to change notification settings - Fork 8.3k
Test test_throttling/test.py::test_remote_write_throttling_reload is flaky #86098
Copy link
Copy link
Closed
Closed
Copy link
Labels
flaky testflaky test found by CIflaky test found by CI
Description
_____________________ test_remote_write_throttling_reload ______________________
[gw1] linux -- Python 3.10.12 /usr/bin/python3
def test_remote_write_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"insert into data select * from numbers(1e6)")
assert_took(took, 0)
# add bandwidth limit and reload config on fly
node_update_config(
"server", "max_remote_write_network_bandwidth_for_server", "2M", False
)
node.query("SYSTEM RELOAD CONFIG")
# writing 1e6*8 bytes with 2M default bandwidth should take (8-2)/2=3 seconds
_, took = elapsed(node.query, f"insert into data select * from numbers(1e6)")
assert_took(took, 3)
# update bandwidth back to 0
node_update_config(
"server", "max_remote_write_network_bandwidth_for_server", "0", False
)
node.query("SYSTEM RELOAD CONFIG")
_, took = elapsed(node.query, f"insert into data select * from numbers(1e6)")
> assert took < 1
E assert 1.3175480365753174 < 1
test_throttling/test.py:524: AssertionError
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
flaky testflaky test found by CIflaky test found by CI