The MongoDB replica tests pause replication for certain before they write #372
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!372
Loading…
Reference in a new issue
No description provided.
Delete branch "feature/352-mongo-replica-pause"
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?
The MongoDB replica-set test host now confirms that both secondaries hold a batch before a pause returns, so a write a test makes right after the pause cannot become visible on a replica. Test-host code only; no product change.
MongoDbReplicaSetEngineHost.PauseReplicationAsyncset thepauseBatchApplicationBeforeCompletionfail point and returned. A batch already in flight can still finish and carry the next write. The set also allowed chained replication, so one secondary could sync from the other, paused one.waitForFailPoint, 30 s limit) until each secondary has entered the fail point again. The set starts withchainingAllowed: false, so both secondaries read the primary's oplog directly. The tests are unchanged.Verified:
RewriteCache_RightAfterAnApiSaveWhileReplicationIsPaused_AnswersFromThePrimarypassed 10/10 in the coder's runs and 5/5 in the verifier's, in the CI container.MongoDbReplica*test passed 21/21, in both runs.Closes #352
🤖 Generated with Claude Code
https://claude.ai/code/session_01T33E3pmQvqkTriyQUMNUTK