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

Add function to calculate write concern default formula

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

      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.

            Assignee:
            m.maher@mongodb.com Moustafa Maher
            Reporter:
            samy.lanka@mongodb.com Samyukta Lanka
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: