-
Notifications
You must be signed in to change notification settings - Fork 8.3k
Integration test test_dns_cache is flaky #75982
Copy link
Copy link
Closed
Labels
flaky testflaky test found by CIflaky test found by CItestingSpecial issue with list of bugs found by CISpecial issue with list of bugs found by CI
Description
=================================== FAILURES ===================================
______________________ test_user_access_ip_change[node0] _______________________
[gw4] linux -- Python 3.10.12 /usr/bin/python3
cluster_with_dns_cache_update = <helpers.cluster.ClickHouseCluster object at 0x7feb6ed7a140>
node = <helpers.cluster.ClickHouseInstance object at 0x7feb6ed7a5c0>
@pytest.mark.parametrize("node", [node5, node6])
def test_user_access_ip_change(cluster_with_dns_cache_update, node):
node_name = node.name
node_num = node.name[-1]
# getaddrinfo(...) may hang for a log time without this options
node.exec_in_container(
[
"bash",
"-c",
'echo -e "options timeout:1\noptions attempts:2" >> /etc/resolv.conf',
],
privileged=True,
user="root",
)
assert (
node3.query("SELECT * FROM remote('{}', 'system', 'one')".format(node_name))
== "0\n"
)
assert (
node4.query("SELECT * FROM remote('{}', 'system', 'one')".format(node_name))
== "0\n"
)
node.set_hosts(
[
("127.255.255.255", "node3"),
(f"2001:3984:3989::1:88{node_num}4", "unknown_host"),
],
)
cluster.restart_instance_with_ip_change(
node3, "2001:3984:3989::1:88{}3".format(node_num)
)
cluster.restart_instance_with_ip_change(
node4, "2001:3984:3989::1:88{}4".format(node_num)
)
> with pytest.raises(QueryRuntimeException):
E Failed: DID NOT RAISE <class 'helpers.client.QueryRuntimeException'>
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
flaky testflaky test found by CIflaky test found by CItestingSpecial issue with list of bugs found by CISpecial issue with list of bugs found by CI