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

Investigate unorthodox locking in ReplicationCoordinatorExternalState

    • Type: Icon: Improvement Improvement
    • Resolution: Fixed
    • Priority: Icon: Minor - P4 Minor - P4
    • 7.0.0-rc0
    • Affects Version/s: None
    • Component/s: None
    • Replication
    • Fully Compatible
    • Repl 2023-02-20, Repl 2023-03-06

      As part of SERVER-71198 we discovered that the locking performed in the class takes a MODE_X lock for the local database and then performs operation on a single collection without locking it.

      Instead the process should take the collection lock via AutoGetCollection in the required mode to avoid unnecessary strong locks in the database.

            Assignee:
            jiawei.yang@mongodb.com Jiawei Yang
            Reporter:
            jordi.olivares-provencio@mongodb.com Jordi Olivares Provencio
            Votes:
            0 Vote for this issue
            Watchers:
            7 Start watching this issue

              Created:
              Updated:
              Resolved: