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

Fix data race when reading/writing the logical session id

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major - P3 Major - P3
    • 7.1.1, 7.2.0-rc0, 7.0.4
    • None
    • None
    • None
    • Fully Compatible
    • ALL
    • v7.1, v7.0
    • Sharding EMEA 2023-10-30
    • 119

    Description

      The thread in kill_sessions_common.cpp acquires the client lock and reads the logical session id on opCtx, while the thread in sharding_ddl_util.cpp sets a new logical session id without the client lock.

      Consequently, we could end up with a data race at the logical session id from the opCtx.

      A possible solution could be to protect this write with the client lock.

      Attachments

        Activity

          People

            pol.pinol@mongodb.com Pol Pinol
            pol.pinol@mongodb.com Pol Pinol
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: