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

Don't access the filesystem under std::mutex in the chunk cloner's nextCloneBatch()

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Fixed
    • Affects Version/s: 3.4.20, 4.0.7, 3.6.11, 4.1.9
    • Fix Version/s: 4.1.10
    • Component/s: Sharding
    • Backwards Compatibility:
      Fully Compatible
    • Operating System:
      ALL
    • Sprint:
      Sharding 2019-04-08
    • Linked BF Score:
      19

      Description

      Accessing the filesystem under a std::mutex can cause deadlocks. When retrieving the next clone 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.

        Attachments

          Issue Links

            Activity

              People

              • Votes:
                0 Vote for this issue
                Watchers:
                5 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: