Debian Codegraph @

mysql-test/suite/perfschema/t/hostcache_ipv6_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/not_embedded.inc
10 --source include/have_debug.inc
11 --source include/check_ipv6.inc
12 --source include/have_perfschema.inc
13 --source include/have_hostname_cache.inc
14
15 # [Warning] Host name 'santa.claus.ipv6.example.com' could not be resolved:
16 # Temporary failure in name resolution
17 call mtr.add_suppression("santa.claus.ipv6.example.com");
18
19 # Enforce a clean state
20 --source ../include/wait_for_pfs_thread_count.inc
21 --source ../include/hostcache_set_state.inc
22
23 connect (con1,"::1",root,,test,$MASTER_MYPORT,);
24 select "Con1 is alive";
25 select current_user();
26 disconnect con1;
27
28 --connection default
29 SET @saved_dbug = @@GLOBAL.debug_dbug;
30 set global debug_dbug= "+d,vio_peer_addr_fake_ipv6,getnameinfo_fake_ipv6,getaddrinfo_error_again";
31
32 --disable_query_log
33 --error ER_HOST_NOT_PRIVILEGED
34 connect (con2,"::1",root,,test,$MASTER_MYPORT,);
35 --enable_query_log
36
37 --connection default
38 --source ../include/hostcache_dump.inc
39
40 --disable_query_log
41 --error ER_HOST_NOT_PRIVILEGED
42 connect (con3,"::1",root,,test,$MASTER_MYPORT,);
43 --enable_query_log
44
45 --connection default
46 --source ../include/hostcache_dump.inc
47
48 SET @@GLOBAL.debug_dbug = @saved_dbug;
49