mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-24 16:42:05 +00:00
Allow more replica change events in hedged tests due to high server load during testing
This commit is contained in:
parent
bbae136a1e
commit
19b147c7ac
@ -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,
|
||||
|
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user