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

Invariant failure txn->lockState()->isDbLockedForMode(db, MODE_IS)

    • Type: Icon: Bug Bug
    • Resolution: Duplicate
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: Storage
    • Labels:
      None
    • ALL

      This was discovered during repl initial sync testing with MMS. Looks like there are places in ListDatabase, where we are not holding the:

      2014-11-15T22:04:29.469+0000 I -        [conn690] Invariant failure txn->lockState()->isDbLockedForMode(db, MODE_IS) src/mongo/db/catalog/database_holder.cpp 74
      2014-11-15T22:04:29.484+0000 I CONTROL  [conn690] 
       0xf76e59 0xf1ee51 0xf04883 0x90bf61 0x95b5b8 0x9bff44 0x9c0de2 0x9c1950 0xbc2c84 0xaa7193 0x7e91b0 0xf33531 0x7f15187aa182 0x7f15178aafbd
      ----- BEGIN BACKTRACE -----
      {"backtrace":[{"b":"400000","o":"B76E59"},{"b":"400000","o":"B1EE51"},{"b":"400000","o":"B04883"},{"b":"400000","o":"50BF61"},{"b":"400000","o":"55B5B8"},{"b":"400000","o":"5BFF44"},{"b":"400000","o":"5C0DE2"},{"b":"400000","o":"5C1950"},{"b":"400000","o":"7C2C84"},{"b":"400000","o":"6A7193"},{"b":"400000","o":"3E91B0"},{"b":"400000","o":"B33531"},{"b":"7F15187A2000","o":"8182"},{"b":"7F15177B0000","o":"FAFBD"}],"processInfo":{ "mongodbVersion" : "2.8.0-rc1-pre-", "gitVersion" : "6334d8898369773c99be56ec1a4363ae5ee0e54d", "uname" : { "sysname" : "Linux", "release" : "3.13.0-36-generic", "version" : "#63-Ubuntu SMP Wed Sep 3 21:30:07 UTC 2014", "machine" : "x86_64" }, "somap" : [ { "elfType" : 2, "b" : "400000" }, { "b" : "7FFF9CEFE000", "elfType" : 3 }, { "b" : "7F15187A2000", "path" : "/lib/x86_64-linux-gnu/libpthread.so.0", "elfType" : 3 }, { "b" : "7F151859A000", "path" : "/lib/x86_64-linux-gnu/librt.so.1", "elfType" : 3 }, { "b" : "7F1518396000", "path" : "/lib/x86_64-linux-gnu/libdl.so.2", "elfType" : 3 }, { "b" : "7F1518092000", "path" : "/usr/lib/x86_64-linux-gnu/libstdc++.so.6", "elfType" : 3 }, { "b" : "7F1517D8C000", "path" : "/lib/x86_64-linux-gnu/libm.so.6", "elfType" : 3 }, { "b" : "7F1517B76000", "path" : "/lib/x86_64-linux-gnu/libgcc_s.so.1", "elfType" : 3 }, { "b" : "7F15177B0000", "path" : "/lib/x86_64-linux-gnu/libc.so.6", "elfType" : 3 }, { "b" : "7F15189C0000", "path" : "/lib64/ld-linux-x86-64.so.2", "elfType" : 3 } ] }}
       mongod(_ZN5mongo15printStackTraceERSo+0x29) [0xf76e59]
       mongod(_ZN5mongo10logContextEPKc+0xE1) [0xf1ee51]
       mongod(_ZN5mongo15invariantFailedEPKcS1_j+0xD3) [0xf04883]
       mongod(_ZNK5mongo14DatabaseHolder3getEPNS_16OperationContextERKNS_10StringDataE+0xD1) [0x90bf61]
       mongod(_ZN5mongo16CmdListDatabases3runEPNS_16OperationContextERKSsRNS_7BSONObjEiRSsRNS_14BSONObjBuilderEb+0x288) [0x95b5b8]
       mongod(_ZN5mongo12_execCommandEPNS_16OperationContextEPNS_7CommandERKSsRNS_7BSONObjEiRSsRNS_14BSONObjBuilderEb+0x34) [0x9bff44]
       mongod(_ZN5mongo7Command11execCommandEPNS_16OperationContextEPS0_iPKcRNS_7BSONObjERNS_14BSONObjBuilderEb+0xC62) [0x9c0de2]
       mongod(_ZN5mongo12_runCommandsEPNS_16OperationContextEPKcRNS_7BSONObjERNS_11_BufBuilderINS_16TrivialAllocatorEEERNS_14BSONObjBuilderEbi+0x2D0) [0x9c1950]
       mongod(_ZN5mongo11newRunQueryEPNS_16OperationContextERNS_7MessageERNS_12QueryMessageERNS_5CurOpES3_b+0x1034) [0xbc2c84]
       mongod(_ZN5mongo16assembleResponseEPNS_16OperationContextERNS_7MessageERNS_10DbResponseERKNS_11HostAndPortEb+0xBB3) [0xaa7193]
       mongod(_ZN5mongo16MyMessageHandler7processERNS_7MessageEPNS_21AbstractMessagingPortEPNS_9LastErrorE+0xE0) [0x7e91b0]
       mongod(_ZN5mongo17PortMessageServer17handleIncomingMsgEPv+0x421) [0xf33531]
       libpthread.so.0(+0x8182) [0x7f15187aa182]
       libc.so.6(clone+0x6D) [0x7f15178aafbd]
      -----  END BACKTRACE  -----
      

            Assignee:
            mark.benvenuto@mongodb.com Mark Benvenuto
            Reporter:
            kaloian.manassiev@mongodb.com Kaloian Manassiev
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated:
              Resolved: