Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

rec: a single NSEC3 record covering everything is a special case #13543

Merged
merged 2 commits into from Dec 1, 2023

Conversation

omoerbeek
Copy link
Member

Fixes #13542

Short description

Checklist

I have:

  • read the CONTRIBUTING.md document
  • compiled this code
  • tested this code
  • included documentation (including possible behaviour changes)
  • documented the code
  • added or modified regression test(s)
  • added or modified unit test(s)

@coveralls
Copy link

coveralls commented Nov 29, 2023

Pull Request Test Coverage Report for Build 7058058194

  • 6 of 6 (100.0%) changed or added relevant lines in 2 files are covered.
  • 52 unchanged lines in 11 files lost coverage.
  • Overall coverage decreased (-0.02%) to 57.369%

Files with Coverage Reduction New Missed Lines %
pdns/pollmplexer.cc 1 82.61%
pdns/sstuff.hh 1 61.99%
pdns/query-local-address.cc 2 76.6%
pdns/packethandler.cc 3 72.84%
pdns/stubresolver.cc 3 81.63%
pdns/tsigverifier.cc 3 77.22%
pdns/signingpipe.cc 5 83.06%
pdns/ws-auth.cc 5 80.61%
pdns/recursordist/test-syncres_cc1.cc 7 88.91%
pdns/dnsdist-tcp.cc 8 75.82%
Totals Coverage Status
Change from base Build 7057769616: -0.02%
Covered Lines: 106092
Relevant Lines: 153791

💛 - Coveralls

Copy link
Member

@rgacogne rgacogne left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Change looks OK to me. It feels a bit weird to do this test in commonPrefixIsLong, I wonder if it wouldn't make more sense to have it in AggressiveNSECCache::isSmallCoveringNSEC3 instead, before calling commonPrefixIsLong, but this makes no functional difference.

@omoerbeek
Copy link
Member Author

Change looks OK to me. It feels a bit weird to do this test in commonPrefixIsLong, I wonder if it wouldn't make more sense to have it in AggressiveNSECCache::isSmallCoveringNSEC3 instead, before calling commonPrefixIsLong, but this makes no functional difference.

Right, I had the same thought this morning. Will change.

@pspacek
Copy link

pspacek commented Nov 30, 2023

I confirm it works in my tests case with an empty zone.

@omoerbeek omoerbeek merged commit a9fec78 into PowerDNS:master Dec 1, 2023
74 checks passed
@omoerbeek omoerbeek deleted the rec-aggr-nsec3-empty branch December 19, 2023 08:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

rec: NSEC3 aggressive cache does not work (for empty zones?)
4 participants