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

Prevent writing to "local" db from waiting for writeConcern

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 5.0.3, 5.1.0-rc0
    • Affects Version/s: None
    • Component/s: None
    • None
    • Minor Change
    • ALL
    • v5.0
    • Repl 2021-08-09

      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.

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

              Created:
              Updated:
              Resolved: