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

write concern accepts malformed documents

    • Type: Icon: Improvement Improvement
    • Resolution: Duplicate
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: Replication
    • Labels:
    • Replication

      We should validate the arguments sent to write concern so that if we add a field to write concern, old servers that don't support that field do not silently ignore it. Applications might assume they're getting durability guarantees they are not getting.
      Ex:

      > db.test.runCommand({insert : "test", documents : [], writeConcern : { foo : 1} } )
      

            Assignee:
            backlog-server-repl [DO NOT USE] Backlog - Replication Team
            Reporter:
            judah.schvimer@mongodb.com Judah Schvimer
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated:
              Resolved: