Fetch missing doc should only run when the doc is not found

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Done
    • Priority: Major - P3
    • 4.3.1
    • Affects Version/s: None
    • Component/s: Replication
    • None
    • Fully Compatible
    • ALL
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      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.

            Assignee:
            A. Jesse Jiryu Davis
            Reporter:
            Siyuan Zhou
            Votes:
            0 Vote for this issue
            Watchers:
            7 Start watching this issue

              Created:
              Updated:
              Resolved: