Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-26611

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

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major - P3 Major - P3
    • 4.3.1
    • None
    • Replication
    • None
    • Fully Compatible
    • ALL

    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.

      Attachments

        Activity

          People

            jesse@mongodb.com A. Jesse Jiryu Davis
            siyuan.zhou@mongodb.com Siyuan Zhou
            Votes:
            0 Vote for this issue
            Watchers:
            7 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: