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

If there is a pending write due to an fsync lock, all reads are blocked

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Minor - P4 Minor - P4
    • 2.2.0
    • 2.0.1
    • Concurrency
    • None
    • 64bit Ubuntu 11.04 + gcc 4.5.2
    • Linux

    Description

      By locking the database and issuing a single write, all readers are starved. No read operations can go through.

      Because of this, a new shell will start but cannot be used – it must be doing some read-lock requiring operation. Ostensibly, this is due to the shell attempting to read but being unable to do so due to the waiting write starving any reader attempt.

      Issuing "mongo --eval 'db.fsyncUnlock()'" will unlock the database, allow writes through, and unfreeze the shell.

      Attachments

        Activity

          People

            dwight@mongodb.com Dwight Merriman
            dan@mongodb.com Daniel Pasette (Inactive)
            Votes:
            3 Vote for this issue
            Watchers:
            11 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: