Allow more replica change events in hedged tests due to high server load during testing

This commit is contained in:
Pavel Kruglov 2021-04-07 13:30:47 +03:00
parent bbae136a1e
commit 19b147c7ac
2 changed files with 8 additions and 2 deletions

View File

@ -87,7 +87,10 @@ def check_settings(node_name, sleep_in_send_tables_status_ms, sleep_in_send_data
def check_changing_replica_events(expected_count):
result = NODES['node'].query("SELECT value FROM system.events WHERE event='HedgedRequestsChangeReplica'")
assert int(result) == expected_count
# If server load is high we can see more than expected
# replica change events, but never less than expected
assert int(result) >= expected_count
def update_configs(node_1_sleep_in_send_tables_status=0, node_1_sleep_in_send_data=0,

View File

@ -88,7 +88,10 @@ def check_settings(node_name, sleep_in_send_tables_status_ms, sleep_in_send_data
def check_changing_replica_events(expected_count):
result = NODES['node'].query("SELECT value FROM system.events WHERE event='HedgedRequestsChangeReplica'")
assert int(result) == expected_count
# If server load is high we can see more than expected
# replica change events, but never less than expected
assert int(result) >= expected_count
def update_configs(node_1_sleep_in_send_tables_status=0, node_1_sleep_in_send_data=0,