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

Don't access the filesystem under std::mutex in the chunk cloner's nextModsBatch

    • Type: Icon: Bug Bug
    • Resolution: Duplicate
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: 3.4.20, 3.6.11, 4.0.7, 4.1.9
    • Component/s: Sharding
    • ALL
    • Sharding 2019-04-08

      Accessing the filesystem under a std::mutex can cause deadlocks. When retrieving the next modifications batch in the migration cloner source, we check if each document still exists in the storage subsystem. This is done under the cloner's internal mutex. We should rework the function so to not access the storage subsystem while holding the mutex.

      Note: caused a BF in a patch build.

            Assignee:
            randolph@mongodb.com Randolph Tan
            Reporter:
            blake.oler@mongodb.com Blake Oler
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: