[SERVER-26611] Fetch missing doc should only run when the doc is not found Created: 12/Oct/16  Updated: 30/Sep/19  Resolved: 30/Sep/19

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

Type: Bug Priority: Major - P3
Reporter: Siyuan Zhou Assignee: A. Jesse Jiryu Davis
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Backwards Compatibility: Fully Compatible
Operating System: ALL
Participants:

 Description   

We fetch missing docs in initial sync because MMAP can miss docs in collection scan if they are updated. However, we should not fetch the doc for any errors other than the document is not found.

If an insert fails because of idempotency issues, inserting the latest version of doc may run into a duplicated _id error. This particular issue can be fixed by SERVER-26202 so that the insert won't fail, but adding missing docs should be limited to document not found error.



 Comments   
Comment by A. Jesse Jiryu Davis [ 30/Sep/19 ]

Fixed by SERVER-42022, since MMAPv1 is obsolete we no longer fetch missing documents at all.

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