WaitForWriteConcern should not be skipped entirely for local commands

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Works as Designed
    • Priority: Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • None
    • Replication
    • Execution Team 2024-04-29, Execution Team 2024-05-13, Execution Team 2024-05-27
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      Currently we have a check very early in the code to skip waiting for write concern completely if the command targets a non-replicated DB. I think this is incorrect for 2 reasons:

      1. We should honor j:1 write concerns even on the local db
      2. Even commands that target the local db can have replicated writes (eg using an agg $out stage into another db)

              Assignee:
              Daotang Yang
              Reporter:
              Mathias Stearn
              Votes:
              0 Vote for this issue
              Watchers:
              12 Start watching this issue

                Created:
                Updated:
                Resolved: