]> git.ipfire.org Git - thirdparty/bind9.git/commit
Improve dnstap system test reliability
authorAram Sargsyan <aram@isc.org>
Fri, 10 Mar 2023 11:07:13 +0000 (11:07 +0000)
committerArаm Sаrgsyаn <aram@isc.org>
Mon, 13 Mar 2023 10:25:01 +0000 (10:25 +0000)
commitfa686fcea5df03a8a9d696fbfe6f2e11d72ee3ed
treeb64ba59e524645cfad6ed3d47da23bb2baced760
parentb3029d31c066fb6c1a3696d10da0118139c7ee54
Improve dnstap system test reliability

The dnstap system test fails intermittently, and it appears to be
a timing issue - adding a short delay after running 'fstrm_capture',
and before running 'dnstap -reopen' improves the situation from
50% failures (5 out of 10 times) to 0% failures (0 out of 20 times),
tested locally.

The reason is that 'fstrm_capture' is executed in the background,
and due to OS scheduling and other factors, the listener socket
may not be ready when the following command runs and tells 'named'
to (re)open it.
bin/tests/system/dnstap/tests.sh