Fix data race in setting/getting the logical session ID

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Duplicate
    • Priority: Major - P3
    • None
    • Affects Version/s: None
    • Component/s: Internal Code
    • None
    • Replication
    • ALL
    • 11
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      The reading thread in kill_sessions_common.cpp does acquire the client lock to access the logical session id on opCtx, the writing thread in transaction_oplog_application does not. As a result, we may have a read after write data race while accessing the logical session id.

      A potential suggestion would be for the writing thread to also acquire the client lock before setting the logical session id.

            Assignee:
            [DO NOT USE] Backlog - Replication Team
            Reporter:
            Celina Tala
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated:
              Resolved: