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
No reviewers
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!441
Loading…
Reference in a new issue
No description provided.
Delete branch "feature/432-mongodb-idle-replica-lag"
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?
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:
MongoDbReplicaHealthTestspasses (5 of 5);Ninlil.Dns.Data.Testspasses (139). The pull-request pipeline does not run the Docker tests; thedeveloppush 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