bind9/bin
Michał Kępień 18e20f95f6 Fix startup detection after restart in start.pl
The bin/tests/system/start.pl script waits until a "running" message is
logged by a given name server instance before attempting to send a
version.bind/CH/TXT query to it.  The idea behind this was to make the
script wait until named loads all the zones it is configured to serve
before telling the system test framework that a given server is ready to
use; this prevents the need to add boilerplate code that waits for a
specific zone to be loaded to each test expecting that.

The problem is that when it looks for "running" messages, the
bin/tests/system/start.pl script assumes that the existence of any such
message in the named.run file indicates that a given named instance has
already finished loading all zones.  Meanwhile, some system tests
restart all the named instances they use throughout their lifetime (some
even do that a few times), for example to run Python-based tests.  The
bin/tests/system/start.pl script handles such a scenario incorrectly: as
soon as it finds any "running" message in the named.run file it inspects
and it gets a response to a version.bind/CH/TXT query, it tells the
system test framework that a given server is ready to use, which might
not be true - it is possible that only the "version.bind" zone is loaded
at that point and the "running" message found was logged by a
previously-shutdown named instance. This triggers intermittent failures
for Python-based tests.

Fix by improving the logic that the bin/tests/system/start.pl script
uses to detect server startup: check how many "running" lines are
present in a given named.run file before attempting to start a named
instance and only proceed with version.bind/CH/TXT queries when the
number of "running" lines found in that named.run file increases after
the server is started.
2022-10-11 11:54:57 +02:00
..
check Remove the isc_app API 2022-08-26 09:09:25 +02:00
confgen Replace alg_totext with dst_hmac_algorithm_totext 2022-09-27 16:54:39 +02:00
delv Use designated initializers instead of memset()/MEM_ZERO for structs 2022-10-05 16:44:05 +02:00
dig Use designated initializers instead of memset()/MEM_ZERO for structs 2022-10-05 16:44:05 +02:00
dnssec Use designated initializers instead of memset()/MEM_ZERO for structs 2022-10-05 16:44:05 +02:00
named Record the 'edns-udp-size' in the view, not in the resolver 2022-10-05 11:59:36 -07:00
nsupdate Add and use semantic patch to replace isc_mem_get/allocate+memset 2022-10-05 16:44:05 +02:00
plugins Use designated initializers instead of memset()/MEM_ZERO for structs 2022-10-05 16:44:05 +02:00
rndc prevent a possible shutdown hang in rndc 2022-09-12 13:14:19 -07:00
tests Fix startup detection after restart in start.pl 2022-10-11 11:54:57 +02:00
tools Implement TLS transport support for dns_request and dns_dispatch 2022-09-19 16:36:28 +00:00
Makefile.am Remove native PKCS#11 support 2021-09-09 15:35:39 +02:00