1
0
mirror of https://github.com/MariaDB/server.git synced 2026-10-23 18:49:29 +03:00
Files
Vladislav Vaintroub a349bb8501 MDEV-40955 mysql_client_test needs a resolvable DNS on Linux.
The tests test_proxy_header_connect_errors_reset() and
test_proxy_header_host_denied_not_counted() rely on their client IPs
(192.0.2.x test IPs, per RFC 5737) failing reverse DNS lookup permanently,
which is what a real, working resolver reports for them. Linux's resolver
isn't so RFC-compliant, when it has no route to any nameserver at all: it
reports EAI_AGAIN (temporary) instead, which is deliberately excluded from
connect-error accounting to avoid blocking hosts during a DNS outage.
That silently defeats the max_connect_errors check these tests exercise.

Fix by forcing the deterministic "permanent failure" outcome via the
existing getnameinfo_error_noname debug instrumentation, same as its
sibling tests. Debug-only, like those siblings, since the workaround
needs DBUG_EXECUTE_IF.

Assisted-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-10-02 12:43:45 +10:00
..
2020-07-02 09:41:44 +03:00
2019-05-11 22:19:05 +03:00
2019-05-11 21:29:06 +03:00
2019-05-11 21:29:06 +03:00
2020-09-29 16:59:36 +05:30
2020-06-23 03:24:46 +02:00
2020-09-24 08:09:56 +10:00
2020-09-29 16:59:36 +05:30
2020-09-29 16:59:36 +05:30
…
2020-09-29 16:59:36 +05:30
2020-06-23 03:24:46 +02:00
2020-09-29 16:59:36 +05:30
2020-09-29 16:59:36 +05:30
2020-09-29 16:59:36 +05:30
2020-06-23 03:24:46 +02:00
2024-12-11 14:46:43 +02:00
2020-09-29 16:59:36 +05:30