Uploaded image for project: 'Documentation'
  1. Documentation
  2. DOCS-11076

Document edge cases where bulk inserts may report fewer documents inserted than were actually inserted

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Open
    • Priority: Major - P3
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: Server

      Description

      As discussed in SERVER-29861 there should probably be mention (or link to discussion) of cases where the number of documents written may differ from the number reported successfully written by the command output.

      Example: batch sent, connection closed by server - some documents may have been written. Batch sent, writeconcern satisfied, next batch sent but interrupted - now number written is reported to be size of previously successful batch but some additional documents from the next batch could have been written successfully as well. (it's possible that this belongs with driver or shell bulk method documentation since they split larger batches into batches of 1000).

      https://docs.mongodb.com/manual/reference/command/insert/#behavior

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              Unassigned Unassigned
              Reporter:
              asya Asya Kamsky
              Participants:
              Last commenter:
              Anthony Sansone Anthony Sansone
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Dates

                Created:
                Updated:
                Days since reply:
                3 years, 39 weeks, 6 days ago