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

Race condition between profiler insert & fsyncLock

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Won't Do
    • Icon: Major - P3 Major - P3
    • None
    • None
    • Storage
    • Storage Execution
    • ALL

    Description

      When mongod is under fsyncLock we will skip writing entries to the system.profile collection as they (and the associated operation) would be blocked on the fsyncLock global read lock. The check we perform for this however has no protection against fsyncLock state changing post-check but prior to lock acquisition for the profiler write.

      https://github.com/mongodb/mongo/blob/r3.4.0-rc1/src/mongo/db/instance.cpp#L705

      Attachments

        Activity

          People

            backlog-server-execution Backlog - Storage Execution Team
            james.wahlin@mongodb.com James Wahlin
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: