The MongoDB replica health check measures lag correctly on an idle replica set #61
Labels
No labels
agent
api-regen
agent
architect
agent
coder
agent
console-coder
agent
docs-writer
agent
mechanic
agent
protocol-coder
agent
storage-coder
area/api
area/ci
area/console
area/dhcp
area/dns
area/docs
area/packaging
area/process
area/storage
area/windows
kind
bug
kind
chore
kind
docs
kind
epic
kind
feature
kind
performance
kind
security
kind
test
priority
high
priority
low
priority
medium
resolution
duplicate
resolution
not-a-bug
resolution
wontfix
status
blocked
status
in-progress
status
needs-decision
status
needs-design
status
ready
theme
ad-samba-dns
theme
alternatives-benchmark
theme
console-toolchain
theme
later
theme
parity-devices
theme
parity-query
theme
post-release-fixes
theme
tracker-setup
theme
valkey
theme
windows-installer
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
lantea-one/ninlil#61
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Why
Lag is read from optimes, which an idle replica set advances only on writes or the roughly 10 s no-op writer. A healthy idle secondary can look 11 to 12 s behind (B17-12 gate, OD-B23-b option d).
What changes
Ninlil.Dns.Data.MongoDb, measure the time since the secondary was last current (its optime equals the primary's).Acceptance
src/dotnet/tests/Ninlil.Dns.Data.Integration.Tests(Docker): an idle set with no writes for 15 s is reported eligible (fails on HEAD). A paused secondary is still refused.MongoDbReplicaRoutingTestsclass passes 10/10.Source
b23-design.md:221(OD-B23-b d),:248.Ghost referenced this issue2026-11-05 14:08:44 -05:00