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

[TTLMonitor] error processing ttl logOp() not primary

    • Type: Icon: Bug Bug
    • Resolution: Duplicate
    • Priority: Icon: Minor - P4 Minor - P4
    • None
    • Affects Version/s: 2.4.1
    • Component/s: Replication
    • Environment:
    • Windows
    • Hide

      Create a replica set and then create a collection with an TTL index

      Show
      Create a replica set and then create a collection with an TTL index

      On the log, I see the following errors related to TTLMonitor:

      Fri Apr 05 17:34:04.725 [conn17288] end connection 172.29.102.67:4505 (73 connections now open)
      Fri Apr 05 17:34:04.803 [TTLMonitor] Assertion: 13312:replSet error : logOp() but not primary?
      Fri Apr 05 17:34:05.255 [TTLMonitor] mongod.exe ...\src\mongo\util\stacktrace.cpp(189) mongo::printStackTrace+0x3e
      Fri Apr 05 17:34:05.255 [TTLMonitor] mongod.exe ...\src\mongo\util\assert_util.cpp(159) mongo::msgasserted+0xc1
      Fri Apr 05 17:34:05.255 [TTLMonitor] mongod.exe ...\src\mongo\db\oplog.cpp(176) mongo::_logOpRS+0x1d6
      Fri Apr 05 17:34:05.255 [TTLMonitor] mongod.exe ...\src\mongo\db\ops\delete.cpp(125) mongo::deleteObjects+0xaa3
      Fri Apr 05 17:34:05.255 [TTLMonitor] mongod.exe ...\src\mongo\db\ttl.cpp(107) mongo::TTLMonitor::doTTLForDB+0x12a5
      Fri Apr 05 17:34:05.255 [TTLMonitor] mongod.exe ...\src\mongo\db\ttl.cpp(147) mongo::TTLMonitor::run+0x2c4
      Fri Apr 05 17:34:05.255 [TTLMonitor] mongod.exe ...\src\mongo\util\background.cpp(65) mongo::BackgroundJob::jobBody+0x316
      Fri Apr 05 17:34:05.255 [TTLMonitor] mongod.exe ...\src\third_party\boost\boost\bind\mem_fn_template.hpp(165) boost::_mfi::mf1<void,mongo::BackgroundJob,boost::shared_ptr<mongo::BackgroundJob::JobStatus> >::operator()+0x47
      Fri Apr 05 17:34:05.255 [TTLMonitor] mongod.exe ...\src\third_party\boost\boost\thread\detail\thread.hpp(63) boost::detail::thread_data<boost::_bi::bind_t<void,boost::_mfi::mf1<void,mongo::BackgroundJob,boost::shared_ptr<mongo::BackgroundJob::JobStatus> >,boost::_bi::list2<boost::_bi::value<mongo::BackgroundJob * __ptr64>,boost::_bi::value<boost::shared_ptr<mongo::BackgroundJob::JobStatus> > > > >::run+0x31
      Fri Apr 05 17:34:05.255 [TTLMonitor] mongod.exe ...\src\third_party\boost\libs\thread\src\win32\thread.cpp(180) boost::`anonymous namespace'::thread_start_function+0x21
      Fri Apr 05 17:34:05.255 [TTLMonitor] mongod.exe f:\dd\vctools\crt_bld\self_64_amd64\crt\src\threadex.c(314) _callthreadstartex+0x17
      Fri Apr 05 17:34:05.255 [TTLMonitor] mongod.exe f:\dd\vctools\crt_bld\self_64_amd64\crt\src\threadex.c(292) _threadstartex+0x7f
      Fri Apr 05 17:34:05.255 [TTLMonitor] KERNEL32.DLL BaseThreadInitThunk+0x1a
      Fri Apr 05 17:34:05.255 [TTLMonitor] ERROR: error processing ttl for db: cacheagg 13312 replSet error : logOp() but not primary?
      Fri Apr 05 17:34:05.630 [initandlisten] connection accepted from 172.29.102.74:1856 #17289 (74 connections now open)

            Assignee:
            Unassigned Unassigned
            Reporter:
            david.verdejo@logitravel.com David Verdejo
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: