[SERVER-53943] Oplog Fetcher Mock should account for StartingPoint::kSkipFirstDoc Created: 21/Jan/21 Updated: 06/Dec/22 |
|
| Status: | Backlog |
| Project: | Core Server |
| Component/s: | None |
| Affects Version/s: | None |
| Fix Version/s: | None |
| Type: | Improvement | Priority: | Major - P3 |
| Reporter: | Jason Chan | Assignee: | Backlog - Replication Team |
| Resolution: | Unresolved | Votes: | 0 |
| Labels: | neweng | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Assigned Teams: |
Replication
|
| Participants: |
| Description |
|
The OplogFetcherMock currently will always call _enqueueDocumentsFn with the entire range of documents it receives. However, we should do something similar to the OplogFetcher where we check the StartingPoint strategy and if it equals kSkipFirstDoc, we should not include the first doc to be enqueued into the buffer. |