One bad stored record no longer breaks queries or zone transfers for its zone #274

Merged
claude merged 2 commits from feature/28-skip-bad-records into develop 2026-11-05 01:00:33 -05:00
Owner

A stored record whose data cannot be written as RDATA no longer breaks queries and zone transfers for its zone. Such rows can arrive by a restore, a storage switch, a cluster sync or a hand edit.

  • The signer's check moves to RecordEntityCodec.CanWriteRdata. CachedZone applies it at load, so the resolver, AXFR and IXFR serve the same zone the signer signs. Each bad row gets one Warning per cache load (zone, type, name, id, reason), none per query.
  • An unwritable apex SOA stays in the cache with an Error, because the zone cannot be served without it. AXFR and IXFR then answer SERVFAIL with a Warning, as they do for a zone with no SOA.
  • An IXFR whose journal cannot be sent falls back to a full transfer (RFC 1995 §4) and logs the whole exception.

Verified: 5 new tests fail with NullReferenceException on develop and pass here. Authoritative (649), Dnssec (122), Acme (101) and Ninlil.Web (2038) tests pass, build 0 warnings. The verifier confirmed the production container passes the logger.

Follow-up: #273 (a type with no codec still breaks AXFR; this was already the case before this change).

Closes #28

🤖 Generated with Claude Code

https://claude.ai/code/session_01T33E3pmQvqkTriyQUMNUTK

A stored record whose data cannot be written as RDATA no longer breaks queries and zone transfers for its zone. Such rows can arrive by a restore, a storage switch, a cluster sync or a hand edit. - The signer's check moves to `RecordEntityCodec.CanWriteRdata`. `CachedZone` applies it at load, so the resolver, AXFR and IXFR serve the same zone the signer signs. Each bad row gets one Warning per cache load (zone, type, name, id, reason), none per query. - An unwritable apex SOA stays in the cache with an Error, because the zone cannot be served without it. AXFR and IXFR then answer SERVFAIL with a Warning, as they do for a zone with no SOA. - An IXFR whose journal cannot be sent falls back to a full transfer (RFC 1995 §4) and logs the whole exception. Verified: 5 new tests fail with NullReferenceException on develop and pass here. Authoritative (649), Dnssec (122), Acme (101) and Ninlil.Web (2038) tests pass, build 0 warnings. The verifier confirmed the production container passes the logger. Follow-up: #273 (a type with no codec still breaks AXFR; this was already the case before this change). Closes #28 🤖 Generated with [Claude Code](https://claude.com/claude-code) https://claude.ai/code/session_01T33E3pmQvqkTriyQUMNUTK
Refs #28

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01T33E3pmQvqkTriyQUMNUTK
Zone transfers leave out a stored record whose data cannot be written and refuse a zone whose SOA cannot be written
All checks were successful
Build / Pack and Push NuGet Packages (dns-server) (push) Successful in -1m24s
Build / Build Binary (macos-amd64) (push) Successful in -11s
Build / Build Binary (windows-amd64) (push) Successful in -41s
Build / Test .NET (pull_request) Successful in 12m6s
Build / Build Binary (linux-amd64) (push) Successful in 3m51s
Build / Stage Draft Release (pull_request) Successful in 3s
Build / Pack and Push NuGet Packages (common) (pull_request) Successful in 42s
Build / Pack and Push NuGet Packages (dns-core) (push) Successful in -1m34s
Build / Pack and Push NuGet Packages (dns-server) (pull_request) Successful in -1m58s
Build / Pack and Push NuGet Packages (dhcp) (pull_request) Successful in 1m30s
Build / Pack and Push NuGet Packages (dns-core) (pull_request) Successful in 1m42s
Build / Build Binary (linux-arm64) (pull_request) Successful in -13s
Build / Build Binary (linux-amd64) (pull_request) Successful in -12s
Build / Build Binary (macos-amd64) (pull_request) Successful in -12s
Build / Build Binary (linux-arm64) (push) Successful in 8m55s
Build / Build Binary (macos-arm64) (push) Successful in 8m49s
Build / Smoke Test the Windows Binary (push) Successful in 20s
Build / Build and Push Image (push) Successful in -2m31s
Build / Build Binary (macos-arm64) (pull_request) Successful in 4m2s
Build / Build Arch Linux Packages (push) Successful in -2m22s
Build / Build Binary (windows-amd64) (pull_request) Successful in 3m46s
Build / Build and Push Image (pull_request) Successful in 10s
Build / Smoke Test the Windows Binary (pull_request) Successful in 17s
Build / Build and Test Deb and RPM Packages (push) Successful in -29s
Build / Build Arch Linux Packages (pull_request) Successful in -2m15s
Build / Publish Release (push) Successful in -2m37s
Build / Pipeline (push) Successful in 0s
Build / Build and Test Deb and RPM Packages (pull_request) Successful in 2m29s
Build / Publish Release (pull_request) Successful in -2m38s
Build / Pipeline (pull_request) Successful in 0s
bbdfcf8bd6
Closes #28

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01T33E3pmQvqkTriyQUMNUTK
claude merged commit 228887a5f0 into develop 2026-11-05 01:00:33 -05:00
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
lantea-one/ninlil!274
No description provided.