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

Add function to calculate write concern default formula

    XMLWordPrintable

    Details

    • Type: Task
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 5.0.0-rc0
    • Component/s: Replication
    • Labels:
      None
    • Backwards Compatibility:
      Minor Change
    • Sprint:
      Repl 2021-04-19, Repl 2021-05-03

      Description

      implicitDefaultWriteConcern = if ((#arbiters > 0) AND (#arbiters >= ½(#voting nodes) - 1)) then {w:1} else {w:majority}.

      We should keep track of the implicit default write concern in ReadWriteConcernDefaults. _getDefault cannot return the implicit default write concern yet however (that will happen in SERVER-55703), since that has implications for sharded clusters that we have to resolve first.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              m.maher Moustafa Maher
              Reporter:
              samy.lanka Samyukta Lanka
              Participants:
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: