Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-12979

Respond with error upon encountering unknown field names in writeConcern

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Open
    • Priority: Major - P3
    • Resolution: Unresolved
    • Affects Version/s: 2.6.0-rc0
    • Fix Version/s: Backlog
    • Component/s: Usability, Write Ops
    • Labels:

      Description

      Currently unrecognized field names are silently ignored. Errorring can help protect against typos like

      {fync: true}

      and will correctly error if we add a new flag like journaledOnSlaves and it is sent to a server that doesn't support it.

      We may want to strictly validate all arguments to write commands for the same reason.

        Attachments

          Issue Links

            Activity

              People

              • Votes:
                2 Vote for this issue
                Watchers:
                5 Start watching this issue

                Dates

                • Created:
                  Updated: