The MongoDB replica health check reports an idle replica as 15 seconds behind on its first check #432
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#432
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?
What happened
MongoDbReplicaHealthTests.Monitor_OnAnIdleReplicaSet_KeepsTheReplicaEligiblefailed once on the Linux runner, in the Test .NET job of thedeveloppush run 1611 (the merge of #429, a change to workflows and documents only):The next
developrun (the merge of #428, which contains the same code) was green.Why this may be more than a slow runner
The test waits 15 seconds with no writes and then starts the monitor. The very first check reported the replica exactly that long behind. That is the mistake #61 was about: on an idle replica set an old optime is not lag. So the first check after an idle period can still read an old secondary optime against a fresh primary optime (for example right after the primary's periodic no-op write, before the secondary has reported it), and one such reading makes the replica ineligible.
Wanted
Related: #61 (the same measurement), #352 and #386 (other MongoDB replica test problems).