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

Synchronize shared resources in ServiceExecutor tests

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 4.7.0
    • Affects Version/s: None
    • Component/s: None
    • Fully Compatible
    • ALL
    • Service arch 2020-07-13
    • 0

      Multiple threads have shared access to resources (i.e., condition_variable and mutex) in ServiceExecutor unit-tests. The main thread has exclusive ownership of these resources, while the executor threads are provided with their references. This may cause read-after-delete accesses to these resources (e.g., those defined here). A possible fix is to provide executor threads with shared pointers to these resources.

            Assignee:
            amirsaman.memaripour@mongodb.com Amirsaman Memaripour
            Reporter:
            amirsaman.memaripour@mongodb.com Amirsaman Memaripour
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: