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

setDefaultRWConcern accepts invalid write concern options

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 5.3.0
    • Affects Version/s: None
    • Component/s: None
    • Labels:
      None
    • Fully Compatible
    • ALL
    • Security 2022-01-24, Replication 2021-12-13, Replication 2021-12-27, Replication 2022-01-10
    • 167

      setDefaultRWConcern accepts invalid write concern options like {w: "1"}, but the server will error with UnknownReplWriteConcern when trying to do an actual write.

      We should either start accepting {w: "1"} or error at the time of setting the default read/write concern.

            Assignee:
            gabriel.marks@mongodb.com Gabriel Marks
            Reporter:
            samy.lanka@mongodb.com Samyukta Lanka
            Votes:
            0 Vote for this issue
            Watchers:
            10 Start watching this issue

              Created:
              Updated:
              Resolved: