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

OP_MSG unordered bulk writes should not stop upon first error

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major - P3
    • Resolution: Fixed
    • None
    • 1.17.0-beta, 1.17.0
    • bulk, libmongoc
    • None

    Description

      _mongoc_write_opmsg sets the write result's must_stop to true upon any error in sending the write command.

      This bubbles up to mongoc_bulk_operation_execute here causing the entire bulk operation to fail.

      Per the crud spec for the "ordered" option of bulk writes:

      /**

      • If true, when a write fails, return without performing the remaining
      • writes. If false, when a write fails, continue with the remaining writes, if any.
      • Defaults to true.
        */
        ordered: Boolean;

      Attachments

        Issue Links

          Activity

            People

              roberto.sanchez@mongodb.com Roberto Sanchez
              kevin.albertson@mongodb.com Kevin Albertson
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: