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

the lockTime value is bigger than the totalTime value in globalLock metrics of serverStatus()

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Critical - P2 Critical - P2
    • None
    • 2.4.8
    • Diagnostics
    • None
    • OS: rhel 5.5 x64
      Mongodb: mongodb-linux-x86_64-2.4.8.tgz
    • Linux

    Description

      In a three-nodes replicaset, one primary and two secondaries.
      x:SECONDARY> rs.config()
      {
      "_id" : "x",
      "version" : 7,
      "members" : [

      { "_id" : 3, "host" : "10.136.24.36:27032", "priority" : 2 }

      ,

      { "_id" : 4, "host" : "10.136.24.38:27032" }

      ,

      { "_id" : 5, "host" : "10.136.24.24:27032" }

      ]
      }

      Using db.serverStatus().globalLock to show lock time on all secondary nodes. Node 10.136.24.24, the lockTime value is bigger than the totalTime value. Noe 10.136.24.38 is correct. So what's the problem? Any ideas. Thanks!

      NODE 10.136.24.24
      x:SECONDARY> db.serverStatus().globalLock
      {
      "totalTime" : NumberLong("1794581793000"),
      "lockTime" : NumberLong("18452882937173"),
      "currentQueue" :

      { "total" : 0, "readers" : 0, "writers" : 0 }

      ,
      "activeClients" :

      { "total" : 1, "readers" : 1, "writers" : 0 }

      }

      NODE 10.136.24.38
      x:SECONDARY> db.serverStatus().globalLock
      {
      "totalTime" : NumberLong("1796619409000"),
      "lockTime" : NumberLong("9604218338"),
      "currentQueue" :

      { "total" : 0, "readers" : 0, "writers" : 0 }

      ,
      "activeClients" :

      { "total" : 2, "readers" : 2, "writers" : 0 }

      }

      Attachments

        1. db.serverStatus().txt
          10 kB
        2. locks.txt
          3 kB

        Activity

          People

            ramon.fernandez@mongodb.com Ramon Fernandez Marina
            popgo Jianfeng Xu
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: