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

Unhandled DBException in TTLMonitor terminates server

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Fixed
    • Affects Version/s: 2.8.0-rc0, 2.8.0-rc4
    • Fix Version/s: 3.0.0-rc6
    • Component/s: Indexing, Storage
    • Labels:
    • Backwards Compatibility:
      Fully Compatible
    • Operating System:
      ALL
    • Case:

      Description

      The server terminates when the TTLMonitor thread attempts to remove from a capped collection because the TTL code no longer catches DBExceptions (changed in SERVER-15570) and BackgroundJob now propagates those exceptions (changed in SERVER-15492).

      This bug affects 2.8.0-rc0+. (Note: SERVER-11266 seems to cover the underlying issue of allowing TTL indexes on capped collections.)

      E COMMAND  [TTLMonitor] backgroundjob TTLMonitor exception: cannot remove from a capped collection: test.foo
      F -        [TTLMonitor] terminate() called.
       
      mongod(mongo::printStackTrace(std::ostream&) 0x34) [0x10e5854b4]
      mongod(mongo::(anonymous namespace)::myTerminate() 0x40) [0x10e584af0]
      libc  abi.dylib(std::__terminate(void (*)()) 0x8) [0x7fff85a8f0a1]
      libc  abi.dylib(__cxa_rethrow 0x63) [0x7fff85a8ed48]
      mongod(mongo::BackgroundJob::jobBody() 0x333) [0x10e500063]
      mongod(boost::_mfi::mf0<void, mongo::BackgroundJob>::operator()(mongo::BackgroundJob*) const 0x72) [0x10e503772]
      mongod(void boost::_bi::list1<boost::_bi::value<mongo::BackgroundJob*> >::operator()<boost::_mfi::mf0<void, mongo::BackgroundJob>, boost::_bi::list0>(boost::_bi::type<void>, boost::_mfi::mf0<void, mongo::BackgroundJob>&, boost::_bi::list0&, int) 0x55) [0x10e5036d5]
      mongod(boost::_bi::bind_t<void, boost::_mfi::mf0<void, mongo::BackgroundJob>, boost::_bi::list1<boost::_bi::value<mongo::BackgroundJob*> > >::operator()() 0x3F) [0x10e50366f]
      mongod(boost::detail::thread_data<boost::_bi::bind_t<void, boost::_mfi::mf0<void, mongo::BackgroundJob>, boost::_bi::list1<boost::_bi::value<mongo::BackgroundJob*> > > >::run() 0x1C) [0x10e50361c]
      mongod(boost::(anonymous namespace)::thread_proxy(void*) 0x94) [0x10e5d50b4]
      libsystem_pthread.dylib(_pthread_body 0x83) [0x7fff90b862fc]
      libsystem_pthread.dylib(_pthread_body 0x0) [0x7fff90b86279]
      libsystem_pthread.dylib(thread_start 0xD) [0x7fff90b844b1]

        Attachments

          Issue Links

            Activity

              People

              • Votes:
                0 Vote for this issue
                Watchers:
                5 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: