Uploaded image for project: 'C# Driver'
  1. C# Driver
  2. CSHARP-693

InsertBatch must call GLE after all sub-batches (except perhaps the last) even if WriteConcern is Unacknowledged

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Major - P3
    • Resolution: Fixed
    • 1.7.1, 1.8.1
    • 1.8, 1.8.2
    • None
    • None
    • Minor Change

    Description

      When InsertBatch is called with more documents than can fit in a single message to the server it breaks up the large batch into smaller sub-batches that do fit into a single message.

      To maintain the semantics that a batch stops as soon as the first error is encountered (when ContinueOnError is false) InsertBatch must call GLE after all sub-batches (except perhaps the last) even if WriteConcern is Unacknowledged. Otherwise it wouldn't know that an error occurred and that it should stop sending any additional sub-batches.

      Attachments

        Issue Links

          Activity

            People

              robert@mongodb.com Robert Stam
              robert@mongodb.com Robert Stam
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: