bind9/bin/tests/system/dnstap
Aram Sargsyan f86495f1ad 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.

(cherry picked from commit fa686fcea5)
2023-03-13 11:57:00 +00:00
..
ns1 Use DEFAULT_HMAC for rndc 2022-08-10 17:25:26 +10:00
ns2 Use DEFAULT_HMAC for rndc 2022-08-10 17:25:26 +10:00
ns3 Use DEFAULT_HMAC for rndc 2022-08-10 17:25:26 +10:00
ns4 Use DEFAULT_HMAC for rndc 2022-08-10 17:25:26 +10:00
bad-fstrm-reopen-interval.conf Update the copyright information in all files in the repository 2022-01-11 09:05:02 +01:00
bad-fstrm-set-buffer-hint-max.conf Update the copyright information in all files in the repository 2022-01-11 09:05:02 +01:00
bad-fstrm-set-buffer-hint-min.conf Update the copyright information in all files in the repository 2022-01-11 09:05:02 +01:00
bad-fstrm-set-flush-timeout-max.conf Update the copyright information in all files in the repository 2022-01-11 09:05:02 +01:00
bad-fstrm-set-flush-timeout-min.conf Update the copyright information in all files in the repository 2022-01-11 09:05:02 +01:00
bad-fstrm-set-input-queue-size-max.conf Update the copyright information in all files in the repository 2022-01-11 09:05:02 +01:00
bad-fstrm-set-input-queue-size-min.conf Update the copyright information in all files in the repository 2022-01-11 09:05:02 +01:00
bad-fstrm-set-input-queue-size-po2.conf Update the copyright information in all files in the repository 2022-01-11 09:05:02 +01:00
bad-fstrm-set-output-notify-threshold.conf Update the copyright information in all files in the repository 2022-01-11 09:05:02 +01:00
bad-fstrm-set-output-queue-size-max.conf Update the copyright information in all files in the repository 2022-01-11 09:05:02 +01:00
bad-fstrm-set-output-queue-size-min.conf Update the copyright information in all files in the repository 2022-01-11 09:05:02 +01:00
bad-fstrm-set-reopen-interval-max.conf Update the copyright information in all files in the repository 2022-01-11 09:05:02 +01:00
bad-fstrm-set-reopen-interval-min.conf Update the copyright information in all files in the repository 2022-01-11 09:05:02 +01:00
bad-missing-dnstap-output-view.conf Update the copyright information in all files in the repository 2022-01-11 09:05:02 +01:00
bad-missing-dnstap-output.conf Update the copyright information in all files in the repository 2022-01-11 09:05:02 +01:00
bad-size-version.conf Update the copyright information in all files in the repository 2022-01-11 09:05:02 +01:00
clean.sh Check IPs in a dnstap capture of resolver traffic 2022-06-22 21:14:40 +02:00
good-dnstap-in-options.conf Update the copyright information in all files in the repository 2022-01-11 09:05:02 +01:00
good-dnstap-in-view.conf Update the copyright information in all files in the repository 2022-01-11 09:05:02 +01:00
good-fstrm-reopen-interval.conf Update the copyright information in all files in the repository 2022-01-11 09:05:02 +01:00
good-fstrm-set-buffer-hint.conf Update the copyright information in all files in the repository 2022-01-11 09:05:02 +01:00
good-fstrm-set-flush-timeout.conf Update the copyright information in all files in the repository 2022-01-11 09:05:02 +01:00
good-fstrm-set-input-queue-size.conf Update the copyright information in all files in the repository 2022-01-11 09:05:02 +01:00
good-fstrm-set-output-notify-threshold.conf Update the copyright information in all files in the repository 2022-01-11 09:05:02 +01:00
good-fstrm-set-output-queue-model-mpsc.conf Update the copyright information in all files in the repository 2022-01-11 09:05:02 +01:00
good-fstrm-set-output-queue-model-spsc.conf Update the copyright information in all files in the repository 2022-01-11 09:05:02 +01:00
good-fstrm-set-output-queue-size.conf Update the copyright information in all files in the repository 2022-01-11 09:05:02 +01:00
good-fstrm-set-reopen-interval.conf Update the copyright information in all files in the repository 2022-01-11 09:05:02 +01:00
good-size-unlimited.conf Update the copyright information in all files in the repository 2022-01-11 09:05:02 +01:00
good-size-version.conf Update the copyright information in all files in the repository 2022-01-11 09:05:02 +01:00
large-answer.fstrm dnstap-read: clear buffer before expanding it 2019-06-28 12:43:51 +02:00
prereq.sh Add dnstap prerequisite for dnstap system test 2022-12-02 10:45:21 +01:00
README Update the copyright information in all files in the repository 2022-01-11 09:05:02 +01:00
setup.sh Update the copyright information in all files in the repository 2022-01-11 09:05:02 +01:00
tests.sh Improve dnstap system test reliability 2023-03-13 11:57:00 +00:00
tests_dnstap.py Check IPs in a dnstap capture of resolver traffic 2022-06-22 21:14:40 +02:00
ydump.py Auto-format Python files with black 2022-06-08 13:18:27 +02:00

Copyright (C) Internet Systems Consortium, Inc. ("ISC")

SPDX-License-Identifier: MPL-2.0

This Source Code Form is subject to the terms of the Mozilla Public
License, v. 2.0.  If a copy of the MPL was not distributed with this
file, you can obtain one at https://mozilla.org/MPL/2.0/.

See the COPYRIGHT file distributed with this work for additional
information regarding copyright ownership.

The "large-answer.fstrm" file was generated by configuring a named instance
compiled with --enable-dnstap and --enable-fixed-rrset with the following
directives:

    minimal-responses yes;
    rrset-order { order fixed; };
    dnstap { auth response; };
    dnstap-identity none;
    dnstap-output file "large-answer.fstrm";

The captured RRset from the "example." zone was created using:

    $GENERATE 1-48 @ IN A 127.0.0.$

A server instance set up this way was then queried non-recursively (RD=0) for
"example/A".