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

Deadlock with the WiredTiger storage engine between ListDatabases and DropCollection

    • Type: Icon: Bug Bug
    • Resolution: Done
    • Priority: Icon: Blocker - P1 Blocker - P1
    • 2.8.0-rc1
    • Affects Version/s: None
    • Component/s: Storage
    • None
    • ALL

       [2014/11/19 17:34:06.751] Thread 8 (Thread 0x7fd723ba2700 (LWP 20786)):
       [2014/11/19 17:34:06.751] #0  0x000000000138fd3e in __wt_readlock ()
       [2014/11/19 17:34:06.751] #1  0x00000000013abdaa in __wt_session_lock_dhandle ()
       [2014/11/19 17:34:06.751] #2  0x00000000013ac128 in __wt_session_get_btree ()
       [2014/11/19 17:34:06.751] #3  0x000000000135bf7f in __wt_conn_btree_apply ()
       [2014/11/19 17:34:06.752] #4  0x0000000001371474 in __wt_curstat_init ()
       [2014/11/19 17:34:06.752] #5  0x00000000013a7a06 in __wt_curstat_colgroup_init ()
       [2014/11/19 17:34:06.752] #6  0x00000000013712a5 in __wt_curstat_init ()
       [2014/11/19 17:34:06.752] #7  0x0000000001371749 in __wt_curstat_open ()
       [2014/11/19 17:34:06.752] #8  0x00000000013a7be6 in __wt_curstat_table_init ()
       [2014/11/19 17:34:06.752] #9  0x00000000013714c1 in __wt_curstat_init ()
       [2014/11/19 17:34:06.752] #10 0x0000000001371749 in __wt_curstat_open ()
       [2014/11/19 17:34:06.752] #11 0x00000000013aaf85 in __wt_open_cursor ()
       [2014/11/19 17:34:06.752] #12 0x00000000013ab355 in ?? ()
       [2014/11/19 17:34:06.753] #13 0x0000000000da8c2c in mongo::WiredTigerUtil::exportTableToBSON(__wt_session*, std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, mongo::BSONObjBuilder*) ()
       [2014/11/19 17:34:06.753] #14 0x0000000000d9e165 in mongo::WiredTigerRecordStore::appendCustomStats(mongo::OperationContext*, mongo::BSONObjBuilder*, double) const ()
       [2014/11/19 17:34:06.753] #15 0x0000000000d9d181 in mongo::WiredTigerRecordStore::storageSize(mongo::OperationContext*, mongo::BSONObjBuilder*, int) const ()
       [2014/11/19 17:34:06.753] #16 0x0000000000d2810e in mongo::KVDatabaseCatalogEntry::sizeOnDisk(mongo::OperationContext*) const ()
       [2014/11/19 17:34:06.753] #17 0x000000000096ebe0 in mongo::CmdListDatabases::run(mongo::OperationContext*, std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, mongo::BSONObj&, int, std::basic_string<char, std::char_traits<char>, std::allocator<char> >&, mongo::BSONObjBuilder&, bool) ()
       [2014/11/19 17:34:06.753] #18 0x00000000009d34c4 in mongo::_execCommand(mongo::OperationContext*, mongo::Command*, std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, mongo::BSONObj&, int, std::basic_string<char, std::char_traits<char>, std::allocator<char> >&, mongo::BSONObjBuilder&, bool) ()
       [2014/11/19 17:34:06.753] #19 0x00000000009d4362 in mongo::Command::execCommand(mongo::OperationContext*, mongo::Command*, int, char const*, mongo::BSONObj&, mongo::BSONObjBuilder&, bool) ()
       [2014/11/19 17:34:06.753] #20 0x00000000009d4ed0 in mongo::_runCommands(mongo::OperationContext*, char const*, mongo::BSONObj&, mongo::_BufBuilder<mongo::TrivialAllocator>&, mongo::BSONObjBuilder&, bool, int) ()
       [2014/11/19 17:34:06.754] #21 0x0000000000bd2ecc in mongo::newRunQuery(mongo::OperationContext*, mongo::Message&, mongo::QueryMessage&, mongo::CurOp&, mongo::Message&, bool) ()
       [2014/11/19 17:34:06.754] #22 0x0000000000ab9533 in mongo::assembleResponse(mongo::OperationContext*, mongo::Message&, mongo::DbResponse&, mongo::HostAndPort const&, bool) ()
       [2014/11/19 17:34:06.754] #23 0x00000000007fd820 in mongo::MyMessageHandler::process(mongo::Message&, mongo::AbstractMessagingPort*, mongo::LastError*) ()
       [2014/11/19 17:34:06.754] #24 0x0000000000f3b4a1 in mongo::PortMessageServer::handleIncomingMsg(void*) ()
      

      and

      [2014/11/19 17:34:06.757] Thread 5 (Thread 0x7fd723ea5700 (LWP 20791)):
       [2014/11/19 17:34:06.757] #0  0x0000003c6d40e264 in __lll_lock_wait () from /lib64/libpthread.so.0
       [2014/11/19 17:34:06.757] #1  0x0000003c6d409508 in _L_lock_854 () from /lib64/libpthread.so.0
       [2014/11/19 17:34:06.757] #2  0x0000003c6d4093d7 in pthread_mutex_lock () from /lib64/libpthread.so.0
       [2014/11/19 17:34:06.757] #3  0x000000000132440d in __wt_evict_file_exclusive_on ()
       [2014/11/19 17:34:06.758] #4  0x0000000001332138 in __wt_cache_op ()
       [2014/11/19 17:34:06.758] #5  0x00000000013b5dfb in __wt_checkpoint_close ()
       [2014/11/19 17:34:06.758] #6  0x000000000135b97b in __wt_conn_btree_sync_and_close ()
       [2014/11/19 17:34:06.758] #7  0x000000000135c0fa in __wt_conn_dhandle_close_all ()
       [2014/11/19 17:34:06.758] #8  0x000000000139bd58 in __wt_schema_drop ()
       [2014/11/19 17:34:06.758] #9  0x000000000139bc3f in __wt_schema_drop ()
       [2014/11/19 17:34:06.758] #10 0x00000000013a9503 in ?? ()
       [2014/11/19 17:34:06.758] #11 0x0000000000d97c04 in mongo::WiredTigerKVEngine::_drop(mongo::StringData const&) ()
       [2014/11/19 17:34:06.758] #12 0x0000000000d97dff in mongo::WiredTigerKVEngine::dropIdent(mongo::OperationContext*, mongo::StringData const&) ()
       [2014/11/19 17:34:06.759] #13 0x0000000000d27b1a in mongo::KVCollectionCatalogEntry::RemoveIndexChange::commit() ()
       [2014/11/19 17:34:06.759] #14 0x0000000000d9fdb5 in mongo::WiredTigerRecoveryUnit::_commit() ()
       [2014/11/19 17:34:06.759] #15 0x00000000009117cc in mongo::WriteUnitOfWork::commit() ()
       [2014/11/19 17:34:06.759] #16 0x00000000009dc2ca in mongo::CmdDrop::run(mongo::OperationContext*, std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, mongo::BSONObj&, int, std::basic_string<char, std::char_traits<char>, std::allocator<char> >&, mongo::BSONObjBuilder&, bool) ()
       [2014/11/19 17:34:06.759] #17 0x00000000009d34c4 in mongo::_execCommand(mongo::OperationContext*, mongo::Command*, std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, mongo::BSONObj&, int, std::basic_string<char, std::char_traits<char>, std::allocator<char> >&, mongo::BSONObjBuilder&, bool) ()
       [2014/11/19 17:34:06.759] #18 0x00000000009d4362 in mongo::Command::execCommand(mongo::OperationContext*, mongo::Command*, int, char const*, mongo::BSONObj&, mongo::BSONObjBuilder&, bool) ()
       [2014/11/19 17:34:06.759] #19 0x00000000009d4ed0 in mongo::_runCommands(mongo::OperationContext*, char const*, mongo::BSONObj&, mongo::_BufBuilder<mongo::TrivialAllocator>&, mongo::BSONObjBuilder&, bool, int) ()
       [2014/11/19 17:34:06.759] #20 0x0000000000bd2ecc in mongo::newRunQuery(mongo::OperationContext*, mongo::Message&, mongo::QueryMessage&, mongo::CurOp&, mongo::Message&, bool) ()
       [2014/11/19 17:34:06.759] #21 0x0000000000ab9533 in mongo::assembleResponse(mongo::OperationContext*, mongo::Message&, mongo::DbResponse&, mongo::HostAndPort const&, bool) ()
       [2014/11/19 17:34:06.760] #22 0x00000000007fd820 in mongo::MyMessageHandler::process(mongo::Message&, mongo::AbstractMessagingPort*, mongo::LastError*) ()
       [2014/11/19 17:34:06.760] #23 0x0000000000f3b4a1 in mongo::PortMessageServer::handleIncomingMsg(void*) ()
      

            Assignee:
            matt.kangas Matt Kangas
            Reporter:
            kaloian.manassiev@mongodb.com Kaloian Manassiev
            Votes:
            0 Vote for this issue
            Watchers:
            7 Start watching this issue

              Created:
              Updated:
              Resolved: