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

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major - P3 Major - P3
    • 1.8.1
    • 1.8
    • None
    • None

    Description

      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.

      Attachments

        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: