]> git.ipfire.org Git - thirdparty/bind9.git/commit
Adjusted ancient rrset system test
authorDiego Fronza <diego@isc.org>
Tue, 20 Oct 2020 00:24:38 +0000 (21:24 -0300)
committerDiego Fronza <diego@isc.org>
Wed, 11 Nov 2020 15:53:24 +0000 (12:53 -0300)
commitfc074f15a828dcb572dc1f75d022918224569a35
tree944998bec8a33d2bb8a358da56181ad07d9f850d
parent5e47a13fd05b6e146ad5a89f2f23701d950a608d
Adjusted ancient rrset system test

Before the stale-refresh-time feature, the system test for ancient rrset
was somewhat based on the average time the previous tests and queries
were taking, thus not very precise.

After the addition of stale-refresh-time the system test for ancient
rrset started to fail since the queries for stale records (low
max-stale-ttl) were not taking the time to do a full resolution
anymore, since the answers now were coming from the cache (because the
rrset were stale and within stale-refresh-time window after the
previous resolution failure).

To handle this, the correct time to wait before rrset become ancient is
calculated from max-stale-ttl configuration plus the TTL set in the
rrset used in the tests (ans2/ans.pl).

Then before sending queries for ancient rrset, we check if we need to
sleep enough to ensure those rrset will be marked as ancient.
bin/tests/system/serve-stale/tests.sh