[SERVER-26729] Replace OplogReader usage for fetching missing docs in SyncTail Created: 21/Oct/16  Updated: 06/Dec/22

Status: Backlog
Project: Core Server
Component/s: Replication
Affects Version/s: None
Fix Version/s: None

Type: Task Priority: Major - P3
Reporter: Judah Schvimer Assignee: Backlog - Replication Team
Resolution: Unresolved Votes: 0
Labels: neweng
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Depends
is depended on by SERVER-26772 Remove old initial sync code Closed
is depended on by SERVER-15158 Cleanup initial sync OplogReader use Closed
Related
Assigned Teams:
Replication
Participants:
Linked BF Score: 0

 Description   

This is not even a read on an oplog. A standard fetcher would be more appropriate. This is one of the last uses of the OplogReader in the code base.
https://github.com/mongodb/mongo/blob/master/src/mongo/db/repl/sync_tail.cpp#L943



 Comments   
Comment by Judah Schvimer [ 21/Oct/16 ]

Replacing this with a fetcher could also use a RetryPolicy instead of implementing retries separately as is done here:
https://github.com/mongodb/mongo/blob/master/src/mongo/db/repl/sync_tail.cpp#L962

Generated at Thu Feb 08 04:13:02 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.