An idle MongoDB replica that is only a moment late with the primary's no-op write is no longer refused for a check #441

Merged
claude merged 4 commits from feature/432-mongodb-idle-replica-lag into develop 2026-11-13 21:54:49 -05:00
Owner

Closes #432

An idle MongoDB replica that is only a moment late with the primary's periodic no-op write was refused for one check (run 1611 failed on it). A lag above the settle delay of 2 seconds is now read again after that delay and the second reading decides: a replica that catches up stays eligible, a stuck one is still refused.

The integration test forces the order of the two readings through the read delegate, with no timers, and a unit test covers cancellation during the delay.

Checked locally with Docker: MongoDbReplicaHealthTests passes (5 of 5); Ninlil.Dns.Data.Tests passes (139). The pull-request pipeline does not run the Docker tests; the develop push run does.

Third of a stack: contains the branches of #431 and #228; merge those pull requests first.

🤖 Generated with Claude Code

https://claude.ai/code/session_01T33E3pmQvqkTriyQUMNUTK

Closes #432 An idle MongoDB replica that is only a moment late with the primary's periodic no-op write was refused for one check (run 1611 failed on it). A lag above the settle delay of 2 seconds is now read again after that delay and the second reading decides: a replica that catches up stays eligible, a stuck one is still refused. The integration test forces the order of the two readings through the read delegate, with no timers, and a unit test covers cancellation during the delay. Checked locally with Docker: `MongoDbReplicaHealthTests` passes (5 of 5); `Ninlil.Dns.Data.Tests` passes (139). The pull-request pipeline does not run the Docker tests; the `develop` push run does. Third of a stack: contains the branches of #431 and #228; merge those pull requests first. 🤖 Generated with [Claude Code](https://claude.com/claude-code) https://claude.ai/code/session_01T33E3pmQvqkTriyQUMNUTK
Each At a Glance tile takes its icon from the menu entry of the same page.

Closes #431

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01T33E3pmQvqkTriyQUMNUTK
Closes #228

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01T33E3pmQvqkTriyQUMNUTK
Refs #431

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01T33E3pmQvqkTriyQUMNUTK
Refs #431

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01T33E3pmQvqkTriyQUMNUTK
A lag of more than 2 seconds is read again after 2 seconds and the second reading decides, so a replica that catches up in between stays eligible and a stuck one is still refused.

Closes #432

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01T33E3pmQvqkTriyQUMNUTK
Refs #228

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01T33E3pmQvqkTriyQUMNUTK
Refs #432

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01T33E3pmQvqkTriyQUMNUTK
Refs #432

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01T33E3pmQvqkTriyQUMNUTK
Merge develop into the Zones tile icon branch
All checks were successful
Build / Test .NET on Windows (pull_request) Has been skipped
Build / Compute Version (pull_request) Has been skipped
Build / Test Admin Console (pull_request) Successful in -1m55s
Build / Lint and Script Tests (pull_request) Successful in -2m7s
Build / Test .NET (pull_request) Successful in 4m17s
Build / Windows Test Gate (pull_request) Successful in -2m40s
Build / Stage Draft Release (pull_request) Has been skipped
Build / Pack and Push NuGet Packages (common) (pull_request) Has been skipped
Build / Pack and Push NuGet Packages (dns-server) (pull_request) Has been skipped
Build / Pack and Push NuGet Packages (dhcp) (pull_request) Has been skipped
Build / Pack and Push NuGet Packages (dns-core) (pull_request) Has been skipped
Build / Build Binary (macos-arm64) (pull_request) Has been skipped
Build / Build Binary (linux-amd64) (pull_request) Has been skipped
Build / Build Binary (linux-arm64) (pull_request) Has been skipped
Build / Build Binary (macos-amd64) (pull_request) Has been skipped
Build / Build Binary (windows-amd64) (pull_request) Has been skipped
Build / Smoke Test the Windows Binary (pull_request) Has been skipped
Build / Build and Test Deb and RPM Packages (pull_request) Has been skipped
Build / Build Arch Linux Packages (pull_request) Has been skipped
Build / Build and Push Image (pull_request) Has been skipped
Build / Publish Release (pull_request) Has been skipped
Build / Pipeline (pull_request) Successful in 0s
631187f6a9
Refs #431

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01T33E3pmQvqkTriyQUMNUTK
Merge the Zones tile icon branch into the client identity branch
All checks were successful
Build / Test .NET on Windows (pull_request) Has been skipped
Build / Compute Version (pull_request) Has been skipped
Build / Test Admin Console (pull_request) Successful in -1m3s
Build / Lint and Script Tests (pull_request) Successful in -1m57s
Build / Test .NET (pull_request) Successful in 4m4s
Build / Windows Test Gate (pull_request) Successful in -2m40s
Build / Stage Draft Release (pull_request) Has been skipped
Build / Pack and Push NuGet Packages (dhcp) (pull_request) Has been skipped
Build / Pack and Push NuGet Packages (common) (pull_request) Has been skipped
Build / Pack and Push NuGet Packages (dns-core) (pull_request) Has been skipped
Build / Build Binary (macos-amd64) (pull_request) Has been skipped
Build / Build Binary (linux-arm64) (pull_request) Has been skipped
Build / Pack and Push NuGet Packages (dns-server) (pull_request) Has been skipped
Build / Build Binary (linux-amd64) (pull_request) Has been skipped
Build / Build Binary (macos-arm64) (pull_request) Has been skipped
Build / Build Binary (windows-amd64) (pull_request) Has been skipped
Build / Smoke Test the Windows Binary (pull_request) Has been skipped
Build / Build Arch Linux Packages (pull_request) Has been skipped
Build / Build and Push Image (pull_request) Has been skipped
Build / Build and Test Deb and RPM Packages (pull_request) Has been skipped
Build / Publish Release (pull_request) Has been skipped
Build / Pipeline (pull_request) Successful in 0s
389499f0f8
Refs #228

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01T33E3pmQvqkTriyQUMNUTK
Merge the client identity branch into the idle MongoDB replica branch
All checks were successful
Build / Test .NET on Windows (pull_request) Has been skipped
Build / Compute Version (pull_request) Has been skipped
Build / Test Admin Console (pull_request) Successful in -1m50s
Build / Test .NET (pull_request) Successful in 3m1s
Build / Windows Test Gate (pull_request) Successful in -2m40s
Build / Lint and Script Tests (pull_request) Successful in -2m9s
Build / Stage Draft Release (pull_request) Has been skipped
Build / Pack and Push NuGet Packages (common) (pull_request) Has been skipped
Build / Pack and Push NuGet Packages (dhcp) (pull_request) Has been skipped
Build / Pack and Push NuGet Packages (dns-core) (pull_request) Has been skipped
Build / Pack and Push NuGet Packages (dns-server) (pull_request) Has been skipped
Build / Build Binary (linux-arm64) (pull_request) Has been skipped
Build / Build Binary (linux-amd64) (pull_request) Has been skipped
Build / Build Binary (macos-arm64) (pull_request) Has been skipped
Build / Build Binary (macos-amd64) (pull_request) Has been skipped
Build / Build Binary (windows-amd64) (pull_request) Has been skipped
Build / Smoke Test the Windows Binary (pull_request) Has been skipped
Build / Build Arch Linux Packages (pull_request) Has been skipped
Build / Build and Test Deb and RPM Packages (pull_request) Has been skipped
Build / Build and Push Image (pull_request) Has been skipped
Build / Publish Release (pull_request) Has been skipped
Build / Pipeline (pull_request) Successful in 0s
0e580a3260
Refs #432

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01T33E3pmQvqkTriyQUMNUTK

# Conflicts:
#	CHANGELOG.md
claude merged commit 55478b485e into develop 2026-11-13 21:54:49 -05:00
claude deleted branch feature/432-mongodb-idle-replica-lag 2026-11-13 21:54:49 -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!441
No description provided.