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

Add protection to _implicitDefaultWriteConcernMajority

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 6.3.0-rc0
    • Affects Version/s: None
    • Component/s: None
    • Replication
    • Fully Compatible
    • ALL
    • v6.1, v6.0, v5.0
    • Repl 2022-12-26
    • 11

      It is possible for a race on _implicitDefaultWriteConcernMajority to occur between the replication coordinator, which is setting the read / write concern settings on start up etc. and the GetDefaultRWConcernCommand command.

      We should prevent this race by protecting that variable with a mutex. See my comment for more info.

            Assignee:
            lingzhi.deng@mongodb.com Lingzhi Deng
            Reporter:
            vishnu.kaushik@mongodb.com Vishnu Kaushik
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: