SERVER-134234ClosedDone
Investigate improvements to OplogWriter for large oplog entries
The thread which takes fetched entries and writes them to the oplog collection before sending them to the apply buffer is single threaded, and only grabs oplog entries up to 16MB before writing them and sending to the apply buffer. If we have a scenario (resharding is a common case) where we have a large amount of big oplog entries (~5MB each) then we are only able to write a couple of entries into the oplog at a time, which turns the writer thread into the bottleneck, which can cause Replica