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

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

    • Type: Icon: Investigation Investigation
    • Resolution: Done
    • Priority: Icon: Minor - P4 Minor - P4
    • No version
    • Affects Version/s: None
    • Component/s: None
    • None

      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.

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

              Created:
              Updated:
              Resolved: