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

Respond with error upon encountering unknown field names in writeConcern

    • Type: Icon: Improvement Improvement
    • Resolution: Unresolved
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: 2.6.0-rc0
    • Component/s: Usability, Write Ops
    • Replication

      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.

            Assignee:
            backlog-server-repl [DO NOT USE] Backlog - Replication Team
            Reporter:
            mathias@mongodb.com Mathias Stearn
            Votes:
            2 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated: