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

On shutdown and database drop data files can be closed before the journal thread has finished applying

    • Type: Icon: Bug Bug
    • Resolution: Done
    • Priority: Icon: Critical - P2 Critical - P2
    • 3.0.0-rc7
    • Affects Version/s: None
    • Component/s: None
    • None
    • Fully Compatible
    • ALL

      LOGS

      closeall.js end test loop.  slave.foo.count:
       m30002| 2015-01-26T17:17:52.298+0000 I CONTROL  [journal writer] mongod.exe    ...\src\mongo\util\stacktrace_win.cpp(175)                       mongo::printStackTrace+0x43
       m30002| 2015-01-26T17:17:52.298+0000 I CONTROL  [journal writer] mongod.exe    ...\src\mongo\util\log.cpp(135)                                  mongo::logContext+0x97
       m30002| 2015-01-26T17:17:52.298+0000 I CONTROL  [journal writer] mongod.exe    ...\src\mongo\util\assert_util.cpp(132)                          mongo::verifyFailed+0x12e
       m30002| 2015-01-26T17:17:52.298+0000 I CONTROL  [journal writer] mongod.exe    ...\src\mongo\db\storage\mmap_v1\dur_recover.cpp(304)            mongo::dur::RecoveryJob::Last::newEntry+0x19c
       m30002| 2015-01-26T17:17:52.298+0000 I CONTROL  [journal writer] mongod.exe    ...\src\mongo\db\storage\mmap_v1\dur_recover.cpp(325)            mongo::dur::RecoveryJob::write+0x47
       m30002| 2015-01-26T17:17:52.298+0000 I CONTROL  [journal writer] mongod.exe    ...\src\mongo\db\storage\mmap_v1\dur_recover.cpp(355)            mongo::dur::RecoveryJob::applyEntry+0x2fb
       m30002| 2015-01-26T17:17:52.298+0000 I CONTROL  [journal writer] mongod.exe    ...\src\mongo\db\storage\mmap_v1\dur_recover.cpp(380)            mongo::dur::RecoveryJob::applyEntries+0x119
       m30002| 2015-01-26T17:17:52.298+0000 I CONTROL  [journal writer] mongod.exe    ...\src\mongo\db\storage\mmap_v1\dur_recover.cpp(445)            mongo::dur::RecoveryJob::processSection+0x52c
       m30002| 2015-01-26T17:17:52.298+0000 I CONTROL  [journal writer] mongod.exe    ...\src\mongo\db\storage\mmap_v1\dur_journal_writer.cpp(65)      mongo::dur::`anonymous namespace'::WRITETODATAFILES+0xd3
       m30002| 2015-01-26T17:17:52.299+0000 I CONTROL  [journal writer] mongod.exe    ...\src\mongo\db\storage\mmap_v1\dur_journal_writer.cpp(244)     mongo::dur::JournalWriter::_journalWriterThread+0x366
       m30002| 2015-01-26T17:17:52.299+0000 I CONTROL  [journal writer] mongod.exe    ...\src\third_party\boost\libs\thread\src\win32\thread.cpp(185)  boost::`anonymous namespace'::thread_start_function+0x21
       m30002| 2015-01-26T17:17:52.299+0000 I CONTROL  [journal writer] MSVCR120.dll                                                                   beginthreadex+0x107
       m30002| 2015-01-26T17:17:52.299+0000 I CONTROL  [journal writer] MSVCR120.dll                                                                   endthreadex+0x192
       m30002| 2015-01-26T17:17:52.299+0000 I CONTROL  [journal writer] kernel32.dll                                                                   BaseThreadInitThunk+0xd
       m30002| 2015-01-26T17:17:52.299+0000 I CONTROL  [journal writer] 
       m30002| 2015-01-26T17:17:52.300+0000 F JOURNAL  [journal writer] dbexception in journalWriterThread causing immediate shutdown: 0 assertion src\mongo\db\storage\mmap_v1\dur_recover.cpp:304
       m30002| 2015-01-26T17:17:52.300+0000 I -        [journal writer] Invariant failure false src\mongo\db\storage\mmap_v1\dur_journal_writer.cpp 250
       m30002| 2015-01-26T17:17:52.848+0000 I CONTROL  [journal writer] mongod.exe    ...\src\mongo\util\stacktrace_win.cpp(175)                       mongo::printStackTrace+0x43
       m30002| 2015-01-26T17:17:52.848+0000 I CONTROL  [journal writer] mongod.exe    ...\src\mongo\util\log.cpp(135)                                  mongo::logContext+0x97
       m30002| 2015-01-26T17:17:52.848+0000 I CONTROL  [journal writer] mongod.exe    ...\src\mongo\util\assert_util.cpp(147)                          mongo::invariantFailed+0xf0
       m30002| 2015-01-26T17:17:52.849+0000 I CONTROL  [journal writer] mongod.exe    ...\src\mongo\db\storage\mmap_v1\dur_journal_writer.cpp(250)     `mongo::dur::JournalWriter::_journalWriterThread'::`1'::catch$0+0x8c
       m30002| 2015-01-26T17:17:52.849+0000 I CONTROL  [journal writer] MSVCR120.dll                                                                   _unDNameEx+0x268
       m30002| 2015-01-26T17:17:52.849+0000 I CONTROL  [journal writer] MSVCR120.dll                                                                   _BuildCatchObjectHelper+0x345
       m30002| 2015-01-26T17:17:52.849+0000 I CONTROL  [journal writer] ntdll.dll                                                                      RtlRestoreContext+0x2e2
       m30002| 2015-01-26T17:17:52.849+0000 I CONTROL  [journal writer] mongod.exe    ...\src\mongo\db\storage\mmap_v1\dur_journal_writer.cpp(244)     mongo::dur::JournalWriter::_journalWriterThread+0x366
       m30002| 2015-01-26T17:17:52.849+0000 I CONTROL  [journal writer] mongod.exe    ...\src\third_party\boost\libs\thread\src\win32\thread.cpp(185)  boost::`anonymous namespace'::thread_start_function+0x21
       m30002| 2015-01-26T17:17:52.849+0000 I CONTROL  [journal writer] MSVCR120.dll                                                                   beginthreadex+0x107
       m30002| 2015-01-26T17:17:52.849+0000 I CONTROL  [journal writer] MSVCR120.dll                                                                   endthreadex+0x192
       m30002| 2015-01-26T17:17:52.850+0000 I CONTROL  [journal writer] kernel32.dll                                                                   BaseThreadInitThunk+0xd
       m30002| 2015-01-26T17:17:52.850+0000 I CONTROL  [journal writer] 
       m30002| 2015-01-26T17:17:52.850+0000 I -        [journal writer] 
       m30002| 
       m30002| ***aborting after invariant() failure
       m30002| 
       m30002| 
      

        1. closeall.js
          59 kB
          Ian Whalen

            Assignee:
            kaloian.manassiev@mongodb.com Kaloian Manassiev
            Reporter:
            ian@mongodb.com Ian Whalen (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: