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

InsertBatch fails when large batch has to be split into smaller sub batches

    • Type: Icon: Bug Bug
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • 1.8.1
    • Affects Version/s: 1.8
    • Component/s: None
    • Labels:
      None

      The ResetBatch internal method in MongoInsertMessage.cs is not resetting the length of the buffer which results in more bytes being sent to the server than should be sent. Because the extra bytes are somewhat random the most likely outcome is that the server will complain that a message length (the first 4 of the extra bytes) is too large.

            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: