Uploaded image for project: 'C Driver'
  1. C Driver
  2. CDRIVER-2321

_mongoc_write_command_execute always continues after oversized document

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 1.9.0
    • Affects Version/s: 1.9.0
    • Component/s: libmongoc
    • Labels:
      None

      Reading the code, it appears to me that both branches of _mongoc_write_command_execute (_mongoc_write_opmsg and _mongoc_write_opquery) skip a document that exceeds maxBsonObjectSize and then continue sending the rest of the documents in the batch. They should conform to PyMongo and (I think) other drivers: a single oversized document aborts the bulk operation.

      Doesn't matter if the bulk op is ordered or unordered.

            Assignee:
            jesse@mongodb.com A. Jesse Jiryu Davis
            Reporter:
            jesse@mongodb.com A. Jesse Jiryu Davis
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: