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

Database is locked (or freezed) when database executes a Datafilesync

    • Type: Icon: Bug Bug
    • Resolution: Duplicate
    • Priority: Icon: Critical - P2 Critical - P2
    • None
    • Affects Version/s: 2.4.5
    • Component/s: Storage
    • Environment:
    • Windows
    • Hide

      See a DataFileSync on logs and try to make a db.test.find()

      Show
      See a DataFileSync on logs and try to make a db.test.find()

      When the database is executing a Datafilesync, I could see on logs that we have a increment in client connections to database. When datafilesync is finished, then the client connections drops to the baseline (see attached file). We see this pattern everytime that a datafilesync line is registered on the log.

      I made a test when Datafilesync was in action to recieve one document from a collection (db.test.findOne()), and it took about 10 seconds.

      I reviewed the following article:
      http://docs.mongodb.org/manual/reference/command/fsync/

      And check the following function

      serverIsLocked = function () {
      var co = db.currentOp();
      if (co && co.fsyncLock)

      { return true; }

      return false;
      }

      But when I run this function, I always see that the server is not locked.

        1. mongo_datafilesync.txt
          102 kB
          david.verdejo

            Assignee:
            mark.benvenuto@mongodb.com Mark Benvenuto
            Reporter:
            david.verdejo@logitravel.com David Verdejo
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: