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

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Minor - P4
    • Resolution: Fixed
    • 2.0.1
    • 2.2.0
    • 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

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved: