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

Investigate unorthodox locking in ReplicationCoordinatorExternalState

    XMLWordPrintableJSON

Details

    • Icon: Improvement Improvement
    • Resolution: Fixed
    • Icon: Minor - P4 Minor - P4
    • 7.0.0-rc0
    • None
    • None
    • Replication
    • Fully Compatible
    • Repl 2023-02-20, Repl 2023-03-06

    Description

      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.

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: