Respond with error upon encountering unknown field names in writeConcern

XMLWordPrintableJSON

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

      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:
              [DO NOT USE] Backlog - Replication Team
              Reporter:
              Mathias Stearn
              Votes:
              2 Vote for this issue
              Watchers:
              5 Start watching this issue

                Created:
                Updated: