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

CollectionCloner::_handleARMResultsCallback doesn't acquire mutex before accessing member variables

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 3.5.13
    • Component/s: Replication
    • Labels:
      None
    • Backwards Compatibility:
      Fully Compatible
    • Operating System:
      ALL
    • Linked BF Score:
      0

      Description

      The method CollectionCloner::_handleARMResultsCallback doesn't synchronize access to member variables, for example, when it calls _bufferNextBatchFromArm() it is modifying the _documentsToInsert vector without holding a mutex. It needs to acquire the CollectionCloner mutex before reading or writing member variable data.

        Attachments

          Activity

            People

            Assignee:
            william.schultz William Schultz (Inactive)
            Reporter:
            william.schultz William Schultz (Inactive)
            Participants:
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: