[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 |
| Comments |
| Comment by A. Jesse Jiryu Davis [ 30/Sep/19 ] |
|
Fixed by |