Debian Codegraph @

mysql-test/suite/perfschema/t/hostcache_ipv4_addrinfo_again_deny.test

raw
1
2 #
3 # Tests for the performance_schema host_cache.
4 #
5 # Simulate failures from DNS:
6 # - getaddrinfo() fails with AGAIN
7 # - reported in COUNT_ADDRINFO_TRANSIENT_ERRORS
8
9 --source include/have_debug.inc
10
11 # [Warning] Host name 'santa.claus.ipv4.example.com' could not be resolved:
12 # Temporary failure in name resolution
13 call mtr.add_suppression("santa.claus.ipv4.example.com");
14
15 # Enforce a clean state
16 --source ../include/wait_for_pfs_thread_count.inc
17 --source ../include/hostcache_set_state.inc
18
19 connect (con1,"127.0.0.1",root,,test,$MASTER_MYPORT,);
20 select "Con1 is alive";
21 select current_user();
22 disconnect con1;
23
24 --connection default
25 set global debug= "+d,vio_peer_addr_fake_ipv4,getnameinfo_fake_ipv4,getaddrinfo_error_again";
26
27 --disable_query_log
28 --error ER_HOST_NOT_PRIVILEGED
29 connect (con2,"127.0.0.1",root,,test,$MASTER_MYPORT,);
30 --enable_query_log
31
32 --connection default
33 --source ../include/hostcache_dump.inc
34
35 --disable_query_log
36 --error ER_HOST_NOT_PRIVILEGED
37 connect (con3,"127.0.0.1",root,,test,$MASTER_MYPORT,);
38 --enable_query_log
39
40 --connection default
41 --source ../include/hostcache_dump.inc
42
43 set global debug= default;
44