When migrating session information, the recipient calls repl::logOp, which fasserts that the server can accept writes. If the recipient shard's primary steps down, this fassert can fail, crashing the server.
Backtrace:
d20013| 2017-12-01T05:48:06.246+0000 F REPL [sessionCatalogMigration-fsm_all_sharded_with_stepdowns_and_bala] logOp() but can't accept write to collection db9.coll9 d20013| 2017-12-01T05:48:06.246+0000 F - [sessionCatalogMigration-fsm_all_sharded_with_stepdowns_and_bala] Fatal Assertion 17405 at src\mongo\db\repl\oplog.cpp 392 d20013| 2017-12-01T05:48:06.246+0000 F - [sessionCatalogMigration-fsm_all_sharded_with_stepdowns_and_bala] d20013| d20013| ***aborting after fassert() failure d20013| d20013| d20013| 2017-12-01T05:48:06.504+0000 I CONTROL [sessionCatalogMigration-fsm_all_sharded_with_stepdowns_and_bala] mongod.exe ...\src\mongo\util\stacktrace_windows.cpp(244) mongo::printStackTrace+0x67x d20013| 2017-12-01T05:48:06.504+0000 I CONTROL [sessionCatalogMigration-fsm_all_sharded_with_stepdowns_and_bala] mongod.exe ...\src\mongo\util\signal_handlers_synchronous.cpp(182) mongo::`anonymous namespace'::printSignalAndBacktrace+0x115x d20013| 2017-12-01T05:48:06.504+0000 I CONTROL [sessionCatalogMigration-fsm_all_sharded_with_stepdowns_and_bala] mongod.exe ...\src\mongo\util\signal_handlers_synchronous.cpp(238) mongo::`anonymous namespace'::abruptQuit+0x131x d20013| 2017-12-01T05:48:06.504+0000 I CONTROL [sessionCatalogMigration-fsm_all_sharded_with_stepdowns_and_bala] mongod.exe d:\th\minkernel\crts\ucrt\src\appcrt\misc\signal.cpp(522) raise+0x1128x d20013| 2017-12-01T05:48:06.504+0000 I CONTROL [sessionCatalogMigration-fsm_all_sharded_with_stepdowns_and_bala] mongod.exe d:\th\minkernel\crts\ucrt\src\appcrt\startup\abort.cpp(71) abort+0x57x d20013| 2017-12-01T05:48:06.504+0000 I CONTROL [sessionCatalogMigration-fsm_all_sharded_with_stepdowns_and_bala] mongod.exe ...\src\mongo\util\assert_util.cpp(148) mongo::fassertFailedWithLocation+0x393x d20013| 2017-12-01T05:48:06.504+0000 I CONTROL [sessionCatalogMigration-fsm_all_sharded_with_stepdowns_and_bala] mongod.exe ...\src\mongo\db\repl\oplog.cpp(392) mongo::repl::_logOpsInner+0x244x d20013| 2017-12-01T05:48:06.504+0000 I CONTROL [sessionCatalogMigration-fsm_all_sharded_with_stepdowns_and_bala] mongod.exe ...\src\mongo\db\repl\oplog.cpp(449) mongo::repl::logOp+0x698x d20013| 2017-12-01T05:48:06.504+0000 I CONTROL [sessionCatalogMigration-fsm_all_sharded_with_stepdowns_and_bala] mongod.exe ...\src\mongo\db\s\session_catalog_migration_destination.cpp(285) <lambda_e4192caf70ab7ab2108a9fb64254bfc7>::operator()+0x489x d20013| 2017-12-01T05:48:06.504+0000 I CONTROL [sessionCatalogMigration-fsm_all_sharded_with_stepdowns_and_bala] mongod.exe ...\src\mongo\db\concurrency\write_conflict_exception.h(91) mongo::writeConflictRetry<<lambda_e4192caf70ab7ab2108a9fb64254bfc7> >+0x171x d20013| 2017-12-01T05:48:06.504+0000 I CONTROL [sessionCatalogMigration-fsm_all_sharded_with_stepdowns_and_bala] mongod.exe ...\src\mongo\db\s\session_catalog_migration_destination.cpp(315) mongo::`anonymous namespace'::processSessionOplog+0x1979x d20013| 2017-12-01T05:48:06.504+0000 I CONTROL [sessionCatalogMigration-fsm_all_sharded_with_stepdowns_and_bala] mongod.exe ...\src\mongo\db\s\session_catalog_migration_destination.cpp(440) mongo::SessionCatalogMigrationDestination::_retrieveSessionStateFromSource+0x2367x d20013| 2017-12-01T05:48:06.504+0000 I CONTROL [sessionCatalogMigration-fsm_all_sharded_with_stepdowns_and_bala] mongod.exe c:\program files (x86)\microsoft visual studio 14.0\vc\include\thr\xthread(247) std::_LaunchPad<std::unique_ptr<std::tuple<std::_Binder<std::_Unforced,void (__cdecl mongo::SessionCatalogMigrationDestination::*)(mongo::ServiceContext * __ptr64) __ptr64,mongo::SessionCatalogMigrationDestination * __ptr64 const,mongo::ServiceContext * __ptr64 & __ptr64> >,std::default_delete<std::tuple<std::_Binder<std::_Unforced,void (__cdecl mongo::SessionCatalogMigrationDestination::*)(mongo::ServiceContext * __ptr64) __ptr64,mongo::SessionCatalogMigrationDestination * __ptr64 const,mongo::ServiceContext * __ptr64 & __ptr64> > > > >::_Run+0x115x d20013| 2017-12-01T05:48:06.504+0000 I CONTROL [sessionCatalogMigration-fsm_all_sharded_with_stepdowns_and_bala] mongod.exe c:\program files (x86)\microsoft visual studio 14.0\vc\include\thr\xthread(210) std::_Pad::_Call_func+0x9x d20013| 2017-12-01T05:48:06.504+0000 I CONTROL [sessionCatalogMigration-fsm_all_sharded_with_stepdowns_and_bala] mongod.exe d:\th\minkernel\crts\ucrt\src\appcrt\startup\thread.cpp(92) invoke_thread_procedure+0x44x d20013| 2017-12-01T05:48:06.504+0000 I CONTROL [sessionCatalogMigration-fsm_all_sharded_with_stepdowns_and_bala] mongod.exe d:\th\minkernel\crts\ucrt\src\appcrt\startup\thread.cpp(115) thread_start<unsigned int (__cdecl*)(void * __ptr64)>+0x147x d20013| 2017-12-01T05:48:06.504+0000 I CONTROL [sessionCatalogMigration-fsm_all_sharded_with_stepdowns_and_bala] kernel32.dll BaseThreadInitThunk+0x13x d20013| 2017-12-01T05:48:06.504+0000 F - [sessionCatalogMigration-fsm_all_sharded_with_stepdowns_and_bala] Got signal: 22 (SIGABRT). d20013| 2017-12-01T05:48:06.505+0000 I CONTROL [sessionCatalogMigration-fsm_all_sharded_with_stepdowns_and_bala] *** unhandled exception 0x0000000E at 0x000007FEFCDFA06D, terminating d20013| 2017-12-01T05:48:06.505+0000 I CONTROL [sessionCatalogMigration-fsm_all_sharded_with_stepdowns_and_bala] *** stack trace for unhandled exception: d20013| 2017-12-01T05:48:06.511+0000 I CONTROL [sessionCatalogMigration-fsm_all_sharded_with_stepdowns_and_bala] KERNELBASE.dll RaiseException+0x61x d20013| 2017-12-01T05:48:06.511+0000 I CONTROL [sessionCatalogMigration-fsm_all_sharded_with_stepdowns_and_bala] mongod.exe ...\src\mongo\util\signal_handlers_synchronous.cpp(239) mongo::`anonymous namespace'::abruptQuit+0x155x d20013| 2017-12-01T05:48:06.511+0000 I CONTROL [sessionCatalogMigration-fsm_all_sharded_with_stepdowns_and_bala] mongod.exe d:\th\minkernel\crts\ucrt\src\appcrt\misc\signal.cpp(522) raise+0x1128x d20013| 2017-12-01T05:48:06.511+0000 I CONTROL [sessionCatalogMigration-fsm_all_sharded_with_stepdowns_and_bala] mongod.exe d:\th\minkernel\crts\ucrt\src\appcrt\startup\abort.cpp(71) abort+0x57x d20013| 2017-12-01T05:48:06.511+0000 I CONTROL [sessionCatalogMigration-fsm_all_sharded_with_stepdowns_and_bala] mongod.exe ...\src\mongo\util\assert_util.cpp(148) mongo::fassertFailedWithLocation+0x393x d20013| 2017-12-01T05:48:06.511+0000 I CONTROL [sessionCatalogMigration-fsm_all_sharded_with_stepdowns_and_bala] mongod.exe ...\src\mongo\db\repl\oplog.cpp(392) mongo::repl::_logOpsInner+0x244x d20013| 2017-12-01T05:48:06.512+0000 I CONTROL [sessionCatalogMigration-fsm_all_sharded_with_stepdowns_and_bala] mongod.exe ...\src\mongo\db\repl\oplog.cpp(449) mongo::repl::logOp+0x698x d20013| 2017-12-01T05:48:06.512+0000 I CONTROL [sessionCatalogMigration-fsm_all_sharded_with_stepdowns_and_bala] mongod.exe ...\src\mongo\db\s\session_catalog_migration_destination.cpp(285) <lambda_e4192caf70ab7ab2108a9fb64254bfc7>::operator()+0x489x d20013| 2017-12-01T05:48:06.512+0000 I CONTROL [sessionCatalogMigration-fsm_all_sharded_with_stepdowns_and_bala] mongod.exe ...\src\mongo\db\concurrency\write_conflict_exception.h(91) mongo::writeConflictRetry<<lambda_e4192caf70ab7ab2108a9fb64254bfc7> >+0x171x d20013| 2017-12-01T05:48:06.512+0000 I CONTROL [sessionCatalogMigration-fsm_all_sharded_with_stepdowns_and_bala] mongod.exe ...\src\mongo\db\s\session_catalog_migration_destination.cpp(315) mongo::`anonymous namespace'::processSessionOplog+0x1979x d20013| 2017-12-01T05:48:06.512+0000 I CONTROL [sessionCatalogMigration-fsm_all_sharded_with_stepdowns_and_bala] mongod.exe ...\src\mongo\db\s\session_catalog_migration_destination.cpp(440) mongo::SessionCatalogMigrationDestination::_retrieveSessionStateFromSource+0x2367x d20013| 2017-12-01T05:48:06.512+0000 I CONTROL [sessionCatalogMigration-fsm_all_sharded_with_stepdowns_and_bala] mongod.exe c:\program files (x86)\microsoft visual studio 14.0\vc\include\thr\xthread(247) std::_LaunchPad<std::unique_ptr<std::tuple<std::_Binder<std::_Unforced,void (__cdecl mongo::SessionCatalogMigrationDestination::*)(mongo::ServiceContext * __ptr64) __ptr64,mongo::SessionCatalogMigrationDestination * __ptr64 const,mongo::ServiceContext * __ptr64 & __ptr64> >,std::default_delete<std::tuple<std::_Binder<std::_Unforced,void (__cdecl mongo::SessionCatalogMigrationDestination::*)(mongo::ServiceContext * __ptr64) __ptr64,mongo::SessionCatalogMigrationDestination * __ptr64 const,mongo::ServiceContext * __ptr64 & __ptr64> > > > >::_Run+0x115x d20013| 2017-12-01T05:48:06.512+0000 I CONTROL [sessionCatalogMigration-fsm_all_sharded_with_stepdowns_and_bala] mongod.exe c:\program files (x86)\microsoft visual studio 14.0\vc\include\thr\xthread(210) std::_Pad::_Call_func+0x9x d20013| 2017-12-01T05:48:06.512+0000 I CONTROL [sessionCatalogMigration-fsm_all_sharded_with_stepdowns_and_bala] mongod.exe d:\th\minkernel\crts\ucrt\src\appcrt\startup\thread.cpp(92) invoke_thread_procedure+0x44x d20013| 2017-12-01T05:48:06.512+0000 I CONTROL [sessionCatalogMigration-fsm_all_sharded_with_stepdowns_and_bala] mongod.exe d:\th\minkernel\crts\ucrt\src\appcrt\startup\thread.cpp(115) thread_start<unsigned int (__cdecl*)(void * __ptr64)>+0x147x d20013| 2017-12-01T05:48:06.512+0000 I CONTROL [sessionCatalogMigration-fsm_all_sharded_with_stepdowns_and_bala] kernel32.dll BaseThreadInitThunk+0x13x
- related to
-
SERVER-42614 Remove error code 17405 and use ErrorCodes::NotMaster instead
- Closed