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

Only error on unsupported options with unacknowledged writes if using legacy opcode wire protocol

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Major - P3 Major - P3
    • None
    • None
    • libmongoc
    • None

    Description

      As jmikola discovered when implementing CDRIVER-3400, libmongoc errors on options in writes like collation, arrayFilters, and bypassDocumentValidation if using unacknowledged writes. But the CRUD spec says:

      For unacknowledged writes using opcodes, the driver MUST raise an error if the caller explicitly provides a value.

      With the key point being that we only need to error when using the legacy opcodes (OP_UPDATE, OP_INSERT, etc.). We should loosen those checks to only error if the max wire version indicates we'd be using those legacy opcodes.

      Attachments

        Activity

          People

            Unassigned Unassigned
            kevin.albertson@mongodb.com Kevin Albertson
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated: