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

OplogFetcherMock must avoid calling join() from multiple threads

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 4.9.0
    • Affects Version/s: None
    • Component/s: None
    • Labels:
      None
    • Replication
    • Fully Compatible
    • ALL
    • 0

      join() may only be called on a given thread once; calling it multiple times or simultaneously results in a fatal error. The construction currently used (if joinable then join) is not synchronized and thus racy. Simply locking the current mutex around this call will not work because it will deadlock, but adding another mutex just for this might be fine.

            Assignee:
            backlog-server-repl [DO NOT USE] Backlog - Replication Team
            Reporter:
            matthew.russotto@mongodb.com Matthew Russotto
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: