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

Respond with error upon encountering unknown field names in writeConcern

    XMLWordPrintableJSON

Details

    • Icon: Improvement Improvement
    • Resolution: Unresolved
    • Icon: Major - P3 Major - P3
    • None
    • 2.6.0-rc0
    • Usability, Write Ops
    • Replication

    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

        Activity

          People

            backlog-server-repl Backlog - Replication Team
            mathias@mongodb.com Mathias Stearn
            Votes:
            2 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated: