]> git.ipfire.org Git - thirdparty/bind9.git/commit
Added test for the fix
authorDiego Fronza <diego@isc.org>
Mon, 25 May 2020 18:03:32 +0000 (15:03 -0300)
committerOndřej Surý <ondrej@isc.org>
Wed, 1 Jul 2020 10:52:51 +0000 (12:52 +0200)
commit004849fd3602bc6da66ea6c890cc5c87e3f47a3c
tree178a1bfd84bfa4db7204ad6b19f47efaf70b6869
parent7c0fb5e49253507252a3b8da6f7e6250c33b70ce
Added test for the fix

This test ensures that named will correctly shutdown
when receiving multiple control connections after processing
of either "rncd stop" or "kill -SIGTERM" commands.

Before the fix, named was crashing due to a race condition happening
between two threads, one running shutdown logic in named/server.c
and other handling control logic in controlconf.c.

This test tries to reproduce the above scenario by issuing multiple
queries to a target named instance, issuing either rndc stop or kill
-SIGTERM command to the same named instance, then starting multiple rndc
status connections to ensure it is not crashing anymore.

(cherry picked from commit 042e509753062e8e2d829304f9f57f4e67011cb8)
12 files changed:
bin/tests/system/conf.sh.common
bin/tests/system/shutdown/clean.sh [new file with mode: 0644]
bin/tests/system/shutdown/conftest.py [new file with mode: 0644]
bin/tests/system/shutdown/ns1/named.conf.in [new file with mode: 0644]
bin/tests/system/shutdown/ns1/root.db [new file with mode: 0644]
bin/tests/system/shutdown/ns2/named.conf.in [new file with mode: 0644]
bin/tests/system/shutdown/ns2/test.db [new file with mode: 0644]
bin/tests/system/shutdown/resolver/named.conf.in [new file with mode: 0644]
bin/tests/system/shutdown/resolver/root.db [new file with mode: 0644]
bin/tests/system/shutdown/setup.sh [new file with mode: 0644]
bin/tests/system/shutdown/tests-shutdown.py [new file with mode: 0755]
util/copyrights