]> git.ipfire.org Git - thirdparty/bind9.git/commit
Handling NoNameservers exception
authorDiego Fronza <diego@isc.org>
Tue, 20 Apr 2021 15:59:46 +0000 (12:59 -0300)
committerMark Andrews <marka@isc.org>
Thu, 27 May 2021 02:37:49 +0000 (12:37 +1000)
commitb19cd2d83bb28fb11e6f56422cc71d0bd80d8d7c
treef9b2d03bf41a216c826e689a1abe0e7f159da3f3
parent91cd1ef9ff0d5c1d376a91d21c9ec435d463d8a4
Handling NoNameservers exception

In the shutdown system test multiple queries are sent to a resolver
instance, in the meantime we terminate the same resolver process for
which the queries were sent to, either via rndc stop or a SIGTERM
signal, that means the resolver may not be able to answer all those
queries, since it has initiated the shutdown process.

The dnspython library raises a dns.resolver.NoNameservers exception when
a resolver object fails to receive an answer from the specified list
of nameservers (resolver.nameservers list), we need to handle this
exception as this is something that may happen since we asked the
resolver to terminate, as a result it may not answer clients even if
an answer is available, as the operation will be canceled.
bin/tests/system/shutdown/tests-shutdown.py