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

OP_MSG unordered bulk writes should not stop upon first error

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 1.17.0-beta, 1.17.0
    • Component/s: bulk, libmongoc
    • Labels:
      None
    • Story Points:
      1

      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

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

                Dates

                Created:
                Updated:
                Resolved: