]> 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 19:01:51 +0000 (16:01 -0300)
commite8c3d538d540b57b97a9d9ee4fdb1b31cf93a711
tree1916cf6a8565088ff0dcefcc82d14a9f0fc555d5
parent24ec021e5064047bbd3ef478e87425c5f7ef97b2
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