Uploaded image for project: 'Compass '
  1. Compass
  2. COMPASS-7184

Investigate changes in SERVER-80498: Improve thread safety of ReadConcernArgs modification

    XMLWordPrintableJSON

Details

    • Icon: Investigation Investigation
    • Resolution: Done
    • Icon: Minor - P4 Minor - P4
    • No version
    • None
    • None
    • None

    Description

      Original Downstream Change Summary

      $currentOp output for multi-document transactions used to display the actual readConcern being used. In some cases this could lead to intermittent instances of an operation displaying a different readConcern than the user-provided due to internal operations that temporarily changed it.

      With the merged ticket, $currentOp will now display the user-provided readConcern without the possibility of intermittent changes.

      Description of Linked Ticket

      There is a harmless race between a thread performing an operation using DBDirectClient that temporarily resets the ReadConcernArgs (example) and the currentOps method reading the ReadConcernArgs of the target operation (code).

      The main risk potential for this is an operation printing potentially wrong information for the read concern used. This would occur if the currentOp thread acquired a copy of the data while the temporary reset was happening.

      Attachments

        Activity

          People

            Unassigned Unassigned
            backlog-server-pm Backlog - Core Eng Program Management Team
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: