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

Avoid data race in AdmissionContext

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major - P3 Major - P3
    • 7.0.0-rc0
    • None
    • None
    • None
    • Fully Compatible
    • ALL
    • Execution Team 2023-03-06
    • 170

    Description

      AdmissionContext::Priority gets read by curOp. This can race against a simultaneous write by the operation that sets the priority. This is fine as at most curOp would report an old priority.

      We should wrap the admission priority in an AtomicWord so that we explicitly tell TSAN that this is fine.

      Attachments

        Activity

          People

            jordi.olivares-provencio@mongodb.com Jordi Olivares Provencio
            jordi.olivares-provencio@mongodb.com Jordi Olivares Provencio
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: