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

Prevent writing to "local" db from waiting for writeConcern

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 5.0.3, 5.1.0-rc0
    • Component/s: None
    • Labels:
      None
    • Backwards Compatibility:
      Minor Change
    • Operating System:
      ALL
    • Backport Requested:
      v5.0
    • Sprint:
      Repl 2021-08-09

      Description

      We allow doing writes directly to secondaries if the writes are on the "local" db as this is not replicated.

      When changing the default write concern to "majority", on writing to "local" on secondaries the write concern will be set to "majority" and nothing is preventing the code from waiting for this write-concern from being met.

      1- So we need to add logic from preventing waiting for write-concern if we are writing to "local" db

      2- add testing logic to cover it.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              m.maher Moustafa Maher
              Reporter:
              m.maher Moustafa Maher
              Participants:
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: