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

    • Type: Icon: Bug Bug
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • 1.8, 1.8.2
    • Affects Version/s: 1.7.1, 1.8.1
    • Component/s: None
    • None
    • Minor Change

      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.

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

              Created:
              Updated:
              Resolved: