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

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Done
    • Priority: Critical - P2
    • None
    • Affects Version/s: 2.4.8
    • Component/s: Diagnostics
    • None
    • Environment:
      OS: rhel 5.5 x64
      Mongodb: mongodb-linux-x86_64-2.4.8.tgz
    • Linux
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      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 }

      }

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

            Assignee:
            Ramon Fernandez
            Reporter:
            Jianfeng Xu
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: