Skip to content

Fix negative NSEC(3) record statistics#271

Merged
bal-e merged 1 commit intomainfrom
negative-nsec-counts
Oct 28, 2025
Merged

Fix negative NSEC(3) record statistics#271
bal-e merged 1 commit intomainfrom
negative-nsec-counts

Conversation

@bal-e
Copy link
Contributor

@bal-e bal-e commented Oct 24, 2025

Resolves #268.

@bal-e bal-e self-assigned this Oct 24, 2025
@bal-e bal-e added the bug Something isn't working label Oct 24, 2025
@bal-e bal-e force-pushed the negative-nsec-counts branch from 83b87d4 to 4900cd4 Compare October 24, 2025 15:06
.await
.unwrap();
let sort_time = sort_start.elapsed();
let unsigned_rr_count = records.len();
Copy link
Contributor

Choose a reason for hiding this comment

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

Right, so the thing that solves this is that you recompute the count after putting it in the zonetree? Is any of the other code relevant to this?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yeah! These values are only used for statistics. We will probably overhaul the whole zone storage and signing pipeline eventually -- this is a small fix to get things right for now.

'unsigned_rr_count' was computed before deduplication, and so contained
an excessive number of records.  The variable is now reset after
deduplication, thereby presenting accurate numbers in the signing logs.
@bal-e bal-e force-pushed the negative-nsec-counts branch from adf96d5 to 261db8b Compare October 28, 2025 13:03
@bal-e
Copy link
Contributor Author

bal-e commented Oct 28, 2025

Rebased onto main and removed unnecessary commits.

Copy link
Contributor

@tertsdiepraam tertsdiepraam left a comment

Choose a reason for hiding this comment

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

A comment would be nice but it's fine

@bal-e bal-e marked this pull request as ready for review October 28, 2025 13:04
@bal-e bal-e merged commit 6ed7eac into main Oct 28, 2025
27 checks passed
@bal-e bal-e deleted the negative-nsec-counts branch October 28, 2025 13:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

signing stats NSEC weirdness

2 participants