Uploaded image for project: 'Java Driver'
  1. Java Driver
  2. JAVA-3095

Mongodb all threads wait

    XMLWordPrintable

    Details

    • Type: Task
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Done
    • Affects Version/s: 2.14.3
    • Fix Version/s: None
    • Component/s: None
    • Labels:
      None
    • Environment:
      CentOS 6.7

      Description

      Thread 1253 (Thread 0x7e9e417b9700 (LWP 109033)):
      #0  0x00007fa908b6c68c in pthread_cond_wait@@GLIBC_2.3.2 () from /lib64/libpthread.so.0
      #1  0x0000000000a1a6b4 in void boost::condition_variable_any::wait<boost::mutex>(boost::mutex&) ()
      #2  0x0000000000a143ac in mongo::Lock::DBRead::lockTop(mongo::LockState&) ()
      #3  0x0000000000a16763 in mongo::Lock::DBRead::lockDB(std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&) ()
      #4  0x0000000000a17280 in mongo::Lock::DBRead::DBRead(mongo::StringData const&) ()
      #5  0x00000000008f02d5 in mongo::Client::ReadContext::ReadContext(std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&) ()
      #6  0x0000000000d4bcfa in mongo::newRunQuery(mongo::Message&, mongo::QueryMessage&, mongo::CurOp&, mongo::Message&) ()
      #7  0x0000000000b97322 in ?? ()
      #8  0x0000000000b99902 in mongo::assembleResponse(mongo::Message&, mongo::DbResponse&, mongo::HostAndPort const&) ()
      #9  0x000000000076b6af in mongo::MyMessageHandler::process(mongo::Message&, mongo::AbstractMessagingPort*, mongo::LastError*) ()
      #10 0x000000000117720b in mongo::PortMessageServer::handleIncomingMsg(void*) ()
      #11 0x00007fa908b68aa1 in start_thread () from /lib64/libpthread.so.0
      #12 0x00007fa907f0dbcd in clone () from /lib64/libc.so.6
       
      Thread 1252 (Thread 0x7e9e416b8700 (LWP 109034)):
      #0  0x00007fa908b6c68c in pthread_cond_wait@@GLIBC_2.3.2 () from /lib64/libpthread.so.0
      #1  0x0000000000a1a6b4 in void boost::condition_variable_any::wait<boost::mutex>(boost::mutex&) ()
      #2  0x0000000000a143ac in mongo::Lock::DBRead::lockTop(mongo::LockState&) ()
      #3  0x0000000000a16763 in mongo::Lock::DBRead::lockDB(std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&) ()
      #4  0x0000000000a17280 in mongo::Lock::DBRead::DBRead(mongo::StringData const&) ()
      #5  0x00000000008f02d5 in mongo::Client::ReadContext::ReadContext(std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&) ()
      #6  0x0000000000d4bcfa in mongo::newRunQuery(mongo::Message&, mongo::QueryMessage&, mongo::CurOp&, mongo::Message&) ()
      #7  0x0000000000b97322 in ?? ()
      #8  0x0000000000b99902 in mongo::assembleResponse(mongo::Message&, mongo::DbResponse&, mongo::HostAndPort const&) ()
      #9  0x000000000076b6af in mongo::MyMessageHandler::process(mongo::Message&, mongo::AbstractMessagingPort*, mongo::LastError*) ()
      #10 0x000000000117720b in mongo::PortMessageServer::handleIncomingMsg(void*) ()
      #11 0x00007fa908b68aa1 in start_thread () from /lib64/libpthread.so.0
      #12 0x00007fa907f0dbcd in clone () from /lib64/libc.so.6
      

      Most of the mango threads are waiting, all operations are blocked, the correct response results can not be obtained, the specific causes are not clear.

      More detailed thread stack in stack.log file.

        Attachments

        1. stack.log
          2.23 MB

          Activity

            People

            Assignee:
            Unassigned Unassigned
            Reporter:
            kevin70 Kevin Zou
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: