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

Fix invariant failure in POC RemoteCommandTargeterFactoryImpl::create()

    XMLWordPrintableJSON

Details

    • Sharding NYC 2022-04-18

    Description

      Test to reproduce: jstests/sharding/autodiscover_config_rs_from_secondary.js

      [js_test:autodiscover_config_rs_from_secondary] c20021| {"t":{"$date":"2022-04-07T18:38:05.187+00:00"},"s":"F",  "c":"ASSERT",   "id":23079,   "ctx":"initandlisten","msg":"Invariant failure","attr":{"expr":"Hit a MONGO_UNREACHABLE!","file":"src/mongo/client/remote_command_targeter_factory_impl.cpp","line":62}}
      [js_test:autodiscover_config_rs_from_secondary] c20021| {"t":{"$date":"2022-04-07T18:38:05.187+00:00"},"s":"F",  "c":"ASSERT",   "id":23080,   "ctx":"initandlisten","msg":"\n\n***aborting after invariant() failure\n\n"}
      [js_test:autodiscover_config_rs_from_secondary] c20021| {"t":{"$date":"2022-04-07T18:38:05.187+00:00"},"s":"F",  "c":"CONTROL",  "id":4757800, "ctx":"initandlisten","msg":"Writing fatal message","attr":{"message":"Got signal: 6 (Aborted).\n"}}
      [js_test:autodiscover_config_rs_from_secondary] c20020| {"t":{"$date":"2022-04-07T18:38:05.240+00:00"},"s":"I",  "c":"CONTROL",  "id":31380,   "ctx":"initandlisten","msg":"BACKTRACE","attr":{"bt":{"backtrace":[{"a":"55BCAAFF0342","b":"55BCA4985000","o":"666B342","s":"_ZN5mongo18stack_trace_detail12_GLOBAL__N_119printStackTraceImplERKNS1_7OptionsEPNS_14StackTraceSinkE","C":"mongo::stack_trace_detail::(anonymous namespace)::printStackTraceImpl(mongo::stack_trace_detail::(anonymous namespace)::Options const&, mongo::StackTraceSink*)","s+":"122"},{"a":"55BCAAFF1317","b":"55BCA4985000","o":"666C317","s":"_ZN5mongo15printStackTraceEv","C":"mongo::printStackTrace()","s+":"27"},{"a":"55BCAAFECA8F","b":"55BCA4985000","o":"6667A8F","s":"abruptQuit","s+":"FF"},{"a":"7FE0997C2980","b":"7FE0997B0000","o":"12980","s":"funlockfile","s+":"50"},{"a":"7FE0993FDFB7","b":"7FE0993BF000","o":"3EFB7","s":"gsignal","s+":"C7"},{"a":"7FE0993FF921","b":"7FE0993BF000","o":"40921","s":"abort","s+":"141"},{"a":"55BCAAFE21CD","b":"55BCA4985000","o":"665D1CD","s":"_ZN5mongo15invariantFailedEPKcS1_j","C":"mongo::invariantFailed(char const*, char const*, unsigned int)","s+":"ED"},{"a":"55BCA8FF8594","b":"55BCA4985000","o":"4673594","s":"_ZN5mongo32RemoteCommandTargeterFactoryImpl6createERKNS_16ConnectionStringE","C":"mongo::RemoteCommandTargeterFactoryImpl::create(mongo::ConnectionString const&)","s+":"114"},{"a":"55BCA8368D5B","b":"55BCA4985000","o":"39E3D5B","s":"_ZNSt17_Function_handlerIFSt10unique_ptrIN5mongo5ShardESt14default_deleteIS2_EERKNS1_7ShardIdERKNS1_16ConnectionStringEEZNS1_38initializeGlobalShardingStateForMongoDEPNS1_16OperationContextES8_SB_E3$_8E9_M_invokeERKSt9_Any_dataS8_SB_","C":"std::_Function_handler<std::unique_ptr<mongo::Shard, std::default_delete<mongo::Shard> > (mongo::ShardId const&, mongo::ConnectionString const&), mongo::initializeGlobalShardingStateForMongoD(mongo::OperationContext*, mongo::ShardId const&, mongo::ConnectionString const&)::$_8>::_M_invoke(std::_Any_data const&, mongo::ShardId const&, mongo::ConnectionString const&)","s+":"14B"},{"a":"55BCA9377D7F","b":"55BCA4985000","o":"49F2D7F","s":"_ZN5mongo12ShardFactory11createShardERKNS_7ShardIdERKNS_16ConnectionStringE","C":"mongo::ShardFactory::createShard(mongo::ShardId const&, mongo::ConnectionString const&)","s+":"1AF"},{"a":"55BCA937959D","b":"55BCA4985000","o":"49F459D","s":"_ZN5mongo13ShardRegistry4initEPNS_14ServiceContextE","C":"mongo::ShardRegistry::init(mongo::ServiceContext*)","s+":"1ED"},{"a":"55BCA8380E0B","b":"55BCA4985000","o":"39FBE0B","s":"_ZN5mongo29initializeGlobalShardingStateEPNS_16OperationContextESt10unique_ptrINS_12CatalogCacheESt14default_deleteIS3_EES2_INS_13ShardRegistryES4_IS7_EESt8functionIFS2_INS_3rpc18EgressMetadataHookES4_ISC_EEvEEN5boost8optionalImEE","C":"mongo::initializeGlobalShardingState(mongo::OperationContext*, std::unique_ptr<mongo::CatalogCache, std::default_delete<mongo::CatalogCache> >, std::unique_ptr<mongo::ShardRegistry, std::default_delete<mongo::ShardRegistry> >, std::function<std::unique_ptr<mongo::rpc::EgressMetadataHook, std::default_delete<mongo::rpc::EgressMetadataHook> > ()>, boost::optional<unsigned long>)","s+":"E1B"},{"a":"55BCA836733C","b":"55BCA4985000","o":"39E233C","s":"_ZN5mongo38initializeGlobalShardingStateForMongoDEPNS_16OperationContextERKNS_7ShardIdERKNS_16ConnectionStringE","C":"mongo::initializeGlobalShardingStateForMongoD(mongo::OperationContext*, mongo::ShardId const&, mongo::ConnectionString const&)","s+":"4FC"},{"a":"55BCA7A2F1D4","b":"55BCA4985000","o":"30AA1D4","s":"_ZN5mongo12_GLOBAL__N_114_initAndListenEPNS_14ServiceContextEi","C":"mongo::(anonymous namespace)::_initAndListen(mongo::ServiceContext*, int)","s+":"26A4"},{"a":"55BCA7A25645","b":"55BCA4985000","o":"30A0645","s":"_ZN5mongo11mongod_mainEiPPc","C":"mongo::mongod_main(int, char**)","s+":"1485"},{"a":"55BCA7A240F9","b":"55BCA4985000","o":"309F0F9","s":"main","s+":"9"},{"a":"7FE0993E0BF7","b":"7FE0993BF000","o":"21BF7","s":"__libc_start_main","s+":"E7"},{"a":"55BCA7A2402A","b":"55BCA4985000","o":"309F02A","s":"_start","s+":"2A"}],"processInfo":{"mongodbVersion":"6.0.0-alpha-865-ga1e1c44","gitVersion":"a1e1c44fc7a7b5554ab9bc439e7d4eba1486ddf6","compiledModules":["enterprise"],"uname":{"sysname":"Linux","release":"5.4.0-1065-aws","version":"#68~18.04.1-Ubuntu SMP Thu Feb 3 16:54:16 UTC 2022","machine":"x86_64"},"somap":[{"b":"55BCA4985000","elfType":3,"buildId":"815418A29CAE456D"},{"b":"7FE0997B0000","path":"/lib/x86_64-linux-gnu/libpthread.so.0","elfType":3,"buildId":"68F36706EB2E6EEE4046C4FDCA2A19540B2F6113"},{"b":"7FE0993BF000","path":"/lib/x86_64-linux-gnu/libc.so.6","elfType":3,"buildId":"CE450EB01A5E5ACC7CE7B8C2633B02CC1093339E"}]}}},"tags":[]}
      [js_test:autodiscover_config_rs_from_secondary] c20020| {"t":{"$date":"2022-04-07T18:38:05.240+00:00"},"s":"I",  "c":"CONTROL",  "id":31445,   "ctx":"initandlisten","msg":"Frame","attr":{"frame":{"a":"55BCAAFF0342","b":"55BCA4985000","o":"666B342","s":"_ZN5mongo18stack_trace_detail12_GLOBAL__N_119printStackTraceImplERKNS1_7OptionsEPNS_14StackTraceSinkE","C":"mongo::stack_trace_detail::(anonymous namespace)::printStackTraceImpl(mongo::stack_trace_detail::(anonymous namespace)::Options const&, mongo::StackTraceSink*)","s+":"122"}}}
      [js_test:autodiscover_config_rs_from_secondary] c20020| {"t":{"$date":"2022-04-07T18:38:05.240+00:00"},"s":"I",  "c":"CONTROL",  "id":31445,   "ctx":"initandlisten","msg":"Frame","attr":{"frame":{"a":"55BCAAFF1317","b":"55BCA4985000","o":"666C317","s":"_ZN5mongo15printStackTraceEv","C":"mongo::printStackTrace()","s+":"27"}}}
      [js_test:autodiscover_config_rs_from_secondary] c20020| {"t":{"$date":"2022-04-07T18:38:05.240+00:00"},"s":"I",  "c":"CONTROL",  "id":31445,   "ctx":"initandlisten","msg":"Frame","attr":{"frame":{"a":"55BCAAFECA8F","b":"55BCA4985000","o":"6667A8F","s":"abruptQuit","s+":"FF"}}}
      [js_test:autodiscover_config_rs_from_secondary] c20020| {"t":{"$date":"2022-04-07T18:38:05.240+00:00"},"s":"I",  "c":"CONTROL",  "id":31445,   "ctx":"initandlisten","msg":"Frame","attr":{"frame":{"a":"7FE0997C2980","b":"7FE0997B0000","o":"12980","s":"funlockfile","s+":"50"}}}
      [js_test:autodiscover_config_rs_from_secondary] c20020| {"t":{"$date":"2022-04-07T18:38:05.240+00:00"},"s":"I",  "c":"CONTROL",  "id":31445,   "ctx":"initandlisten","msg":"Frame","attr":{"frame":{"a":"7FE0993FDFB7","b":"7FE0993BF000","o":"3EFB7","s":"gsignal","s+":"C7"}}}
      [js_test:autodiscover_config_rs_from_secondary] c20020| {"t":{"$date":"2022-04-07T18:38:05.240+00:00"},"s":"I",  "c":"CONTROL",  "id":31445,   "ctx":"initandlisten","msg":"Frame","attr":{"frame":{"a":"7FE0993FF921","b":"7FE0993BF000","o":"40921","s":"abort","s+":"141"}}}
      [js_test:autodiscover_config_rs_from_secondary] c20020| {"t":{"$date":"2022-04-07T18:38:05.240+00:00"},"s":"I",  "c":"CONTROL",  "id":31445,   "ctx":"initandlisten","msg":"Frame","attr":{"frame":{"a":"55BCAAFE21CD","b":"55BCA4985000","o":"665D1CD","s":"_ZN5mongo15invariantFailedEPKcS1_j","C":"mongo::invariantFailed(char const*, char const*, unsigned int)","s+":"ED"}}}
      [js_test:autodiscover_config_rs_from_secondary] c20020| {"t":{"$date":"2022-04-07T18:38:05.240+00:00"},"s":"I",  "c":"CONTROL",  "id":31445,   "ctx":"initandlisten","msg":"Frame","attr":{"frame":{"a":"55BCA8FF8594","b":"55BCA4985000","o":"4673594","s":"_ZN5mongo32RemoteCommandTargeterFactoryImpl6createERKNS_16ConnectionStringE","C":"mongo::RemoteCommandTargeterFactoryImpl::create(mongo::ConnectionString const&)","s+":"114"}}}
      [js_test:autodiscover_config_rs_from_secondary] c20020| {"t":{"$date":"2022-04-07T18:38:05.240+00:00"},"s":"I",  "c":"CONTROL",  "id":31445,   "ctx":"initandlisten","msg":"Frame","attr":{"frame":{"a":"55BCA8368D5B","b":"55BCA4985000","o":"39E3D5B","s":"_ZNSt17_Function_handlerIFSt10unique_ptrIN5mongo5ShardESt14default_deleteIS2_EERKNS1_7ShardIdERKNS1_16ConnectionStringEEZNS1_38initializeGlobalShardingStateForMongoDEPNS1_16OperationContextES8_SB_E3$_8E9_M_invokeERKSt9_Any_dataS8_SB_","C":"std::_Function_handler<std::unique_ptr<mongo::Shard, std::default_delete<mongo::Shard> > (mongo::ShardId const&, mongo::ConnectionString const&), mongo::initializeGlobalShardingStateForMongoD(mongo::OperationContext*, mongo::ShardId const&, mongo::ConnectionString const&)::$_8>::_M_invoke(std::_Any_data const&, mongo::ShardId const&, mongo::ConnectionString const&)","s+":"14B"}}}
      [js_test:autodiscover_config_rs_from_secondary] c20020| {"t":{"$date":"2022-04-07T18:38:05.240+00:00"},"s":"I",  "c":"CONTROL",  "id":31445,   "ctx":"initandlisten","msg":"Frame","attr":{"frame":{"a":"55BCA9377D7F","b":"55BCA4985000","o":"49F2D7F","s":"_ZN5mongo12ShardFactory11createShardERKNS_7ShardIdERKNS_16ConnectionStringE","C":"mongo::ShardFactory::createShard(mongo::ShardId const&, mongo::ConnectionString const&)","s+":"1AF"}}}
      [js_test:autodiscover_config_rs_from_secondary] c20020| {"t":{"$date":"2022-04-07T18:38:05.240+00:00"},"s":"I",  "c":"CONTROL",  "id":31445,   "ctx":"initandlisten","msg":"Frame","attr":{"frame":{"a":"55BCA937959D","b":"55BCA4985000","o":"49F459D","s":"_ZN5mongo13ShardRegistry4initEPNS_14ServiceContextE","C":"mongo::ShardRegistry::init(mongo::ServiceContext*)","s+":"1ED"}}}
      [js_test:autodiscover_config_rs_from_secondary] c20020| {"t":{"$date":"2022-04-07T18:38:05.240+00:00"},"s":"I",  "c":"CONTROL",  "id":31445,   "ctx":"initandlisten","msg":"Frame","attr":{"frame":{"a":"55BCA8380E0B","b":"55BCA4985000","o":"39FBE0B","s":"_ZN5mongo29initializeGlobalShardingStateEPNS_16OperationContextESt10unique_ptrINS_12CatalogCacheESt14default_deleteIS3_EES2_INS_13ShardRegistryES4_IS7_EESt8functionIFS2_INS_3rpc18EgressMetadataHookES4_ISC_EEvEEN5boost8optionalImEE","C":"mongo::initializeGlobalShardingState(mongo::OperationContext*, std::unique_ptr<mongo::CatalogCache, std::default_delete<mongo::CatalogCache> >, std::unique_ptr<mongo::ShardRegistry, std::default_delete<mongo::ShardRegistry> >, std::function<std::unique_ptr<mongo::rpc::EgressMetadataHook, std::default_delete<mongo::rpc::EgressMetadataHook> > ()>, boost::optional<unsigned long>)","s+":"E1B"}}}
      [js_test:autodiscover_config_rs_from_secondary] c20020| {"t":{"$date":"2022-04-07T18:38:05.240+00:00"},"s":"I",  "c":"CONTROL",  "id":31445,   "ctx":"initandlisten","msg":"Frame","attr":{"frame":{"a":"55BCA836733C","b":"55BCA4985000","o":"39E233C","s":"_ZN5mongo38initializeGlobalShardingStateForMongoDEPNS_16OperationContextERKNS_7ShardIdERKNS_16ConnectionStringE","C":"mongo::initializeGlobalShardingStateForMongoD(mongo::OperationContext*, mongo::ShardId const&, mongo::ConnectionString const&)","s+":"4FC"}}}
      [js_test:autodiscover_config_rs_from_secondary] c20020| {"t":{"$date":"2022-04-07T18:38:05.240+00:00"},"s":"I",  "c":"CONTROL",  "id":31445,   "ctx":"initandlisten","msg":"Frame","attr":{"frame":{"a":"55BCA7A2F1D4","b":"55BCA4985000","o":"30AA1D4","s":"_ZN5mongo12_GLOBAL__N_114_initAndListenEPNS_14ServiceContextEi","C":"mongo::(anonymous namespace)::_initAndListen(mongo::ServiceContext*, int)","s+":"26A4"}}}
      [js_test:autodiscover_config_rs_from_secondary] c20020| {"t":{"$date":"2022-04-07T18:38:05.240+00:00"},"s":"I",  "c":"CONTROL",  "id":31445,   "ctx":"initandlisten","msg":"Frame","attr":{"frame":{"a":"55BCA7A25645","b":"55BCA4985000","o":"30A0645","s":"_ZN5mongo11mongod_mainEiPPc","C":"mongo::mongod_main(int, char**)","s+":"1485"}}}
      [js_test:autodiscover_config_rs_from_secondary] c20020| {"t":{"$date":"2022-04-07T18:38:05.240+00:00"},"s":"I",  "c":"CONTROL",  "id":31445,   "ctx":"initandlisten","msg":"Frame","attr":{"frame":{"a":"55BCA7A240F9","b":"55BCA4985000","o":"309F0F9","s":"main","s+":"9"}}}
      [js_test:autodiscover_config_rs_from_secondary] c20020| {"t":{"$date":"2022-04-07T18:38:05.240+00:00"},"s":"I",  "c":"CONTROL",  "id":31445,   "ctx":"initandlisten","msg":"Frame","attr":{"frame":{"a":"7FE0993E0BF7","b":"7FE0993BF000","o":"21BF7","s":"__libc_start_main","s+":"E7"}}}
      [js_test:autodiscover_config_rs_from_secondary] c20020| {"t":{"$date":"2022-04-07T18:38:05.240+00:00"},"s":"I",  "c":"CONTROL",  "id":31445,   "ctx":"initandlisten","msg":"Frame","attr":{"frame":{"a":"55BCA7A2402A","b":"55BCA4985000","o":"309F02A","s":"_start","s+":"2A"}}}
      
      

      Attachments

        Activity

          People

            kshitij.gupta@mongodb.com Kshitij Gupta
            andrew.shuvalov@mongodb.com Andrew Shuvalov (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: