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

setDefaultRWConcern accepts invalid write concern options

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: In Code Review
    • Priority: Major - P3
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: 5.2 Desired
    • Component/s: None
    • Labels:
      None
    • Operating System:
      ALL
    • Sprint:
      Replication 2021-12-13

      Description

      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.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              gabriel.marks Gabriel Marks
              Reporter:
              samy.lanka Samyukta Lanka
              Participants:
              Votes:
              0 Vote for this issue
              Watchers:
              7 Start watching this issue

                Dates

                Created:
                Updated: