[SERVER-16749] Unhandled DBException in TTLMonitor terminates server Created: 07/Jan/15  Updated: 06/Dec/17  Resolved: 21/Jan/15

Status: Closed
Project: Core Server
Component/s: Index Maintenance, Storage
Affects Version/s: 2.8.0-rc0, 2.8.0-rc4
Fix Version/s: 3.0.0-rc6

Type: Bug Priority: Major - P3
Reporter: Kamran K. Assignee: Scott Hernandez (Inactive)
Resolution: Done Votes: 0
Labels: 28qa
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Related
is related to SERVER-15492 BackgroundJob swallows exceptions pro... Closed
is related to SERVER-11266 Error on capped collection TTL delete... Closed
is related to SERVER-15570 Pluggable storage engine and TTL? Closed
Backwards Compatibility: Fully Compatible
Operating System: ALL
Participants:
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]



 Comments   
Comment by Githook User [ 21/Jan/15 ]

Author:

{u'username': u'scotthernandez', u'name': u'Scott Hernandez', u'email': u'scotthernandez@gmail.com'}

Message: SERVER-16749: handle per index exceptions and continue
Branch: master
https://github.com/mongodb/mongo/commit/0e4ef6acc797596f5d95f43f235d6110ad81ee10

Generated at Thu Feb 08 03:42:08 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.