-
Type: Bug
-
Resolution: Fixed
-
Priority: Major - P3
-
Affects Version/s: None
-
Component/s: None
-
None
-
Fully Compatible
-
ALL
-
Hide
To enable spilling, you can add the following lines to sbe_hash_lookup_test.cpp:
auto stageUnqPtr = stage->clone(); stage = stageUnqPtr.get(); prepareTree(ctx, stage);
By doing stage->clone(), the new value set for internalQuerySBELookupApproxMemoryUseInBytesBeforeSpill is picked up by the HashLookup stage.
However, surprisingly, the following error is shown:
~/mongo/build/debug/install/bin/db_sbe_test --suite HashLookupStageTest 29s ubuntu@ip-10-122-9-106 18:19:56 [4/4 (100%) 23.268s] Compiling test list: build/unittests.txt {"t":{"$date":"2022-04-11T01:31:00.289Z"},"s":"I", "c":"NETWORK", "id":4915701, "ctx":"thread1","msg":"Initialized wire specification","attr":{"spec":{"incomingExternalClient":{"minWireVersion":0,"maxWireVersion":17},"incomingInternalClient":{"minWireVersion":0,"maxWireVersion":17},"outgoing":{"minWireVersion":6,"maxWireVersion":17},"isInternalClient":false}}} {"t":{"$date":"2022-04-11T01:31:00.374Z"},"s":"I", "c":"TEST", "id":23063, "ctx":"thread1","msg":"Running","attr":{"suite":"HashLookupStageTest"}} {"t":{"$date":"2022-04-11T01:31:00.374Z"},"s":"I", "c":"TEST", "id":23059, "ctx":"thread1","msg":"Running","attr":{"test":"BasicTests","rep":1,"reps":1}} {"t":{"$date":"2022-04-11T01:31:00.376Z"},"s":"W", "c":"ASIO", "id":22601, "ctx":"thread1","msg":"No TransportLayer configured during NetworkInterface startup"} {"t":{"$date":"2022-04-11T01:31:00.376Z"},"s":"I", "c":"NETWORK", "id":4648602, "ctx":"thread1","msg":"Implicit TCP FastOpen in use."} {"t":{"$date":"2022-04-11T01:31:00.403Z"},"s":"I", "c":"TEST", "id":23051, "ctx":"thread1","msg":"Created temporary directory: {path}","attr":{"path":"/tmp/service_context_d_test_fixture-29c4-66bc-08c2-30cf"}} {"t":{"$date":"2022-04-11T01:31:00.404Z"},"s":"I", "c":"STORAGE", "id":22297, "ctx":"thread1","msg":"Using the XFS filesystem is strongly recommended with the WiredTiger storage engine. See http://dochub.mongodb.org/core/prodnotes-filesystem","tags":["startupWarnings"]} {"t":{"$date":"2022-04-11T01:31:00.404Z"},"s":"I", "c":"STORAGE", "id":22315, "ctx":"thread1","msg":"Opening WiredTiger","attr":{"config":"create,cache_size=31247M,session_max=33000,eviction=(threads_min=4,threads_max=4),config_base=false,statistics=(fast),log=(enabled=true,remove=true,path=journal,compressor=),builtin_extension_config=(zstd=(compression_level=0)),file_manager=(close_idle_time=600,close_scan_interval=10,close_handle_minimum=2000),statistics_log=(wait=0),json_output=(error,message),verbose=[recovery_progress:1,checkpoint_progress:1,compact_progress:1,backup:0,checkpoint:0,compact:0,evict:0,history_store:0,recovery:0,rts:0,salvage:0,tiered:0,timestamp:0,transaction:0,verify:0,log:0],debug_mode=(corruption_abort=false,),debug_mode=(table_logging=true,checkpoint_retention=4),"}} {"t":{"$date":"2022-04-11T01:31:00.997Z"},"s":"I", "c":"STORAGE", "id":4795906, "ctx":"thread1","msg":"WiredTiger opened","attr":{"durationMillis":593}} {"t":{"$date":"2022-04-11T01:31:00.997Z"},"s":"I", "c":"RECOVERY", "id":23987, "ctx":"thread1","msg":"WiredTiger recoveryTimestamp","attr":{"recoveryTimestamp":{"$timestamp":{"t":0,"i":0}}}} {"t":{"$date":"2022-04-11T01:31:01.015Z"},"s":"I", "c":"WT", "id":4366408, "ctx":"thread1","msg":"No table logging settings modifications are required for existing WiredTiger tables","attr":{"loggingEnabled":true}} {"t":{"$date":"2022-04-11T01:31:01.034Z"},"s":"F", "c":"ASSERT", "id":23079, "ctx":"thread1","msg":"Invariant failure","attr":{"expr":"opCtx->lockState()->isReadLocked()","file":"src/mongo/db/storage/wiredtiger/wiredtiger_record_store.cpp","line":1103}} {"t":{"$date":"2022-04-11T01:31:01.034Z"},"s":"F", "c":"ASSERT", "id":23080, "ctx":"thread1","msg":"\n\n***aborting after invariant() failure\n\n"} {"t":{"$date":"2022-04-11T01:31:01.035Z"},"s":"F", "c":"CONTROL", "id":4757800, "ctx":"thread1","msg":"Writing fatal message","attr":{"message":"Got signal: 6 (Aborted).\n"}} {"t":{"$date":"2022-04-11T01:31:01.158Z"},"s":"I", "c":"CONTROL", "id":31380, "ctx":"thread1","msg":"BACKTRACE","attr":{"bt":{"backtrace":[{"a":"7F1BB7356E50","b":"7F1BB6D77000","o":"5DFE50","s":"_ZN5mongo18stack_trace_detail12_GLOBAL__N_122LibunwindStepIterationC2ERNS_14StackTraceSinkE","C":"mongo::stack_trace_detail::(anonymous namespace)::LibunwindStepIteration::LibunwindStepIteration(mongo::StackTraceSink&)","s+":"82"},{"a":"7F1BB73575F7","b":"7F1BB6D77000","o":"5E05F7","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+":"99"},{"a":"7F1BB7357A5F","b":"7F1BB6D77000","o":"5E0A5F","s":"_ZN5mongo15printStackTraceEv","C":"mongo::printStackTrace()","s+":"3C"},{"a":"7F1BB734BB6F","b":"7F1BB6D77000","o":"5D4B6F","s":"_ZN5mongo12_GLOBAL__N_123printSignalAndBacktraceEi","C":"mongo::(anonymous namespace)::printSignalAndBacktrace(int)","s+":"6F"},{"a":"7F1BB734BCC3","b":"7F1BB6D77000","o":"5D4CC3","s":"abruptQuit","s+":"31"},{"a":"7F1BB734BD33","b":"7F1BB6D77000","o":"5D4D33","s":"abruptQuitAction","s+":"1D"},{"a":"7F1BB4D91980","b":"7F1BB4D7F000","o":"12980","s":"funlockfile","s+":"50"},{"a":"7F1BB49CCE87","b":"7F1BB498E000","o":"3EE87","s":"gsignal","s+":"C7"},{"a":"7F1BB49CE7F1","b":"7F1BB498E000","o":"407F1","s":"abort","s+":"141"},{"a":"7F1BB7328CBD","b":"7F1BB6D77000","o":"5B1CBD","s":"_ZN5mongo15invariantFailedEPKcS1_j","C":"mongo::invariantFailed(char const*, char const*, unsigned int)","s+":"179"},{"a":"55A891B0D31F","b":"55A89169A000","o":"47331F","s":"_ZN5mongo21invariantWithLocationIbEEvRKT_PKcS5_j","C":"void mongo::invariantWithLocation<bool>(bool const&, char const*, char const*, unsigned int)","s+":"3F"},{"a":"7F1BB452B43B","b":"7F1BB41C2000","o":"36943B","s":"_ZNK5mongo21WiredTigerRecordStore10findRecordEPNS_16OperationContextERKNS_8RecordIdEPNS_10RecordDataE","C":"mongo::WiredTigerRecordStore::findRecord(mongo::OperationContext*, mongo::RecordId const&, mongo::RecordData*) const","s+":"BD"},{"a":"7F1BC35ED609","b":"7F1BC3171000","o":"47C609","s":"_ZN5mongo3sbe15HashLookupStage26readIndicesFromRecordStoreEPNS_11RecordStoreENS0_5value8TypeTagsEm","C":"mongo::sbe::HashLookupStage::readIndicesFromRecordStore(mongo::RecordStore*, mongo::sbe::value::TypeTags, unsigned long)","s+":"FB"},{"a":"7F1BC35EE06A","b":"7F1BC3171000","o":"47D06A","s":"_ZN5mongo3sbe15HashLookupStage7getNextEv","C":"mongo::sbe::HashLookupStage::getNext()","s+":"62C"},{"a":"7F1BC366EEB3","b":"7F1BC3171000","o":"4FDEB3","s":"_ZN5mongo3sbe19StageResultsPrinterISoE17printStageResultsEPNS0_10CompileCtxERKSt6vectorISt4pairIlNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEESaISD_EEPNS0_9PlanStageE","C":"mongo::sbe::StageResultsPrinter<std::ostream>::printStageResults(mongo::sbe::CompileCtx*, std::vector<std::pair<long, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > >, std::allocator<std::pair<long, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > > > > const&, mongo::sbe::PlanStage*)","s+":"187"},{"a":"55A891C81083","b":"55A89169A000","o":"5E7083","s":"_ZN5mongo3sbe19HashLookupStageTest29prepareAndEvalStageWithReopenEPNS0_10CompileCtxERSoRKSt6vectorISt4pairIlNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEESaISD_EEPNS0_9PlanStageE","C":"mongo::sbe::HashLookupStageTest::prepareAndEvalStageWithReopen(mongo::sbe::CompileCtx*, std::ostream&, std::vector<std::pair<long, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > >, std::allocator<std::pair<long, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > > > > const&, mongo::sbe::PlanStage*)","s+":"675"},{"a":"55A891C80640","b":"55A89169A000","o":"5E6640","s":"_ZN5mongo3sbe19HashLookupStageTest12runVariationERNS_8unittest17GoldenTestContextERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEERKNS_9BSONArrayESF_bPNS_17CollatorInterfaceE","C":"mongo::sbe::HashLookupStageTest::runVariation(mongo::unittest::GoldenTestContext&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, mongo::BSONArray const&, mongo::BSONArray const&, bool, mongo::CollatorInterface*)","s+":"84A"},{"a":"55A891C7E648","b":"55A89169A000","o":"5E4648","s":"_ZN5mongo3sbe55UnitTest_SuiteNameHashLookupStageTestTestNameBasicTests7_doTestEv","C":"mongo::sbe::UnitTest_SuiteNameHashLookupStageTestTestNameBasicTests::_doTest()","s+":"118"},{"a":"7F1BC893A46C","b":"7F1BC87BD000","o":"17D46C","s":"_ZN5mongo8unittest4Test3runEv","C":"mongo::unittest::Test::run()","s+":"46"},{"a":"55A891C821A5","b":"55A89169A000","o":"5E81A5","s":"_ZZN5mongo8unittest4Test17RegistrationAgentINS_3sbe55UnitTest_SuiteNameHashLookupStageTestTestNameBasicTestsEEC4EPKNS0_8TestInfoEENKUlvE_clEv","C":"mongo::unittest::Test::RegistrationAgent<mongo::sbe::UnitTest_SuiteNameHashLookupStageTestTestNameBasicTests>::RegistrationAgent(mongo::unittest::TestInfo const*)::{lambda()#1}::operator()() const","s+":"79"},{"a":"55A891C83E7E","b":"55A89169A000","o":"5E9E7E","s":"_ZNSt17_Function_handlerIFvvEZN5mongo8unittest4Test17RegistrationAgentINS1_3sbe55UnitTest_SuiteNameHashLookupStageTestTestNameBasicTestsEEC4EPKNS2_8TestInfoEEUlvE_E9_M_invokeERKSt9_Any_data","C":"std::_Function_handler<void (), mongo::unittest::Test::RegistrationAgent<mongo::sbe::UnitTest_SuiteNameHashLookupStageTestTestNameBasicTests>::RegistrationAgent(mongo::unittest::TestInfo const*)::{lambda()#1}>::_M_invoke(std::_Any_data const&)","s+":"20"},{"a":"7F1BC894CE00","b":"7F1BC87BD000","o":"18FE00","s":"_ZNKSt8functionIFvvEEclEv","C":"std::function<void ()>::operator()() const","s+":"32"},{"a":"7F1BC893BB3B","b":"7F1BC87BD000","o":"17EB3B","s":"_ZN5mongo8unittest5Suite3runERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES9_i","C":"mongo::unittest::Suite::run(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, int)","s+":"7D3"},{"a":"7F1BC893C7D4","b":"7F1BC87BD000","o":"17F7D4","s":"_ZN5mongo8unittest5Suite3runERKSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS8_EERKS8_SE_i","C":"mongo::unittest::Suite::run(std::vector<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::allocator<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > > > const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, int)","s+":"3FC"},{"a":"7F1BC8F1AB5E","b":"7F1BC8EFC000","o":"1EB5E","s":"main","s+":"86C"},{"a":"7F1BB49AFC87","b":"7F1BB498E000","o":"21C87","s":"__libc_start_main","s+":"E7"},{"a":"55A891B057AA","b":"55A89169A000","o":"46B7AA","s":"_start","s+":"2A"}],"processInfo":{"mongodbVersion":"unknown","gitVersion":"none","compiledModules":["unknown"],"uname":{"sysname":"Linux","release":"5.4.0-1068-aws","version":"#72~18.04.1-Ubuntu SMP Thu Mar 3 08:49:49 UTC 2022","machine":"x86_64"},"somap":[{"b":"55A89169A000","elfType":3,"buildId":"802B934F0F5AFA5B294EB947B3192FC49CD93716"},{"b":"7F1BC8EFC000","path":"/home/ubuntu/mongo/build/debug/install/bin/../lib/libunittest_main.so","elfType":3,"buildId":"2F83EF7B6ACF2FCE8B1E018CF23029BBB31F18B6"},{"b":"7F1BC87BD000","path":"/home/ubuntu/mongo/build/debug/install/bin/../lib/libunittest.so","elfType":3,"buildId":"B89F810D40FE78B2366EE43412E4651C4943159A"},{"b":"7F1BC3171000","path":"/home/ubuntu/mongo/build/debug/install/bin/../lib/libquery_sbe.so","elfType":3,"buildId":"7767E7AD955AE0E3D7A3C68BDA974CA16B5E8B07"},{"b":"7F1BB6D77000","path":"/home/ubuntu/mongo/build/debug/install/bin/../lib/libbase.so","elfType":3,"buildId":"4CA5F88DBED21AB67F6E8A46C03CCC0DAD9D2F18"},{"b":"7F1BB4D7F000","path":"/lib/x86_64-linux-gnu/libpthread.so.0","elfType":3,"buildId":"8B60B9F8D9A27F2264A0D8E6C0768B3B02C29926"},{"b":"7F1BB498E000","path":"/lib/x86_64-linux-gnu/libc.so.6","elfType":3,"buildId":"71F0F3074A929E519E85F6A5C03A7D1FD976BFE4"},{"b":"7F1BB41C2000","path":"/home/ubuntu/mongo/build/debug/install/bin/../lib/../lib/libstorage_wiredtiger_core.so","elfType":3,"buildId":"29B6F3D34FFD70177122059E429C5101A6273A4A"}]}}},"tags":[]} {"t":{"$date":"2022-04-11T01:31:01.158Z"},"s":"I", "c":"CONTROL", "id":31445, "ctx":"thread1","msg":"Frame","attr":{"frame":{"a":"7F1BB7356E50","b":"7F1BB6D77000","o":"5DFE50","s":"_ZN5mongo18stack_trace_detail12_GLOBAL__N_122LibunwindStepIterationC2ERNS_14StackTraceSinkE","C":"mongo::stack_trace_detail::(anonymous namespace)::LibunwindStepIteration::LibunwindStepIteration(mongo::StackTraceSink&)","s+":"82"}}} {"t":{"$date":"2022-04-11T01:31:01.158Z"},"s":"I", "c":"CONTROL", "id":31445, "ctx":"thread1","msg":"Frame","attr":{"frame":{"a":"7F1BB73575F7","b":"7F1BB6D77000","o":"5E05F7","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+":"99"}}} {"t":{"$date":"2022-04-11T01:31:01.158Z"},"s":"I", "c":"CONTROL", "id":31445, "ctx":"thread1","msg":"Frame","attr":{"frame":{"a":"7F1BB7357A5F","b":"7F1BB6D77000","o":"5E0A5F","s":"_ZN5mongo15printStackTraceEv","C":"mongo::printStackTrace()","s+":"3C"}}} {"t":{"$date":"2022-04-11T01:31:01.159Z"},"s":"I", "c":"CONTROL", "id":31445, "ctx":"thread1","msg":"Frame","attr":{"frame":{"a":"7F1BB734BB6F","b":"7F1BB6D77000","o":"5D4B6F","s":"_ZN5mongo12_GLOBAL__N_123printSignalAndBacktraceEi","C":"mongo::(anonymous namespace)::printSignalAndBacktrace(int)","s+":"6F"}}} {"t":{"$date":"2022-04-11T01:31:01.159Z"},"s":"I", "c":"CONTROL", "id":31445, "ctx":"thread1","msg":"Frame","attr":{"frame":{"a":"7F1BB734BCC3","b":"7F1BB6D77000","o":"5D4CC3","s":"abruptQuit","s+":"31"}}} {"t":{"$date":"2022-04-11T01:31:01.159Z"},"s":"I", "c":"CONTROL", "id":31445, "ctx":"thread1","msg":"Frame","attr":{"frame":{"a":"7F1BB734BD33","b":"7F1BB6D77000","o":"5D4D33","s":"abruptQuitAction","s+":"1D"}}} {"t":{"$date":"2022-04-11T01:31:01.159Z"},"s":"I", "c":"CONTROL", "id":31445, "ctx":"thread1","msg":"Frame","attr":{"frame":{"a":"7F1BB4D91980","b":"7F1BB4D7F000","o":"12980","s":"funlockfile","s+":"50"}}} {"t":{"$date":"2022-04-11T01:31:01.159Z"},"s":"I", "c":"CONTROL", "id":31445, "ctx":"thread1","msg":"Frame","attr":{"frame":{"a":"7F1BB49CCE87","b":"7F1BB498E000","o":"3EE87","s":"gsignal","s+":"C7"}}} {"t":{"$date":"2022-04-11T01:31:01.159Z"},"s":"I", "c":"CONTROL", "id":31445, "ctx":"thread1","msg":"Frame","attr":{"frame":{"a":"7F1BB49CE7F1","b":"7F1BB498E000","o":"407F1","s":"abort","s+":"141"}}} {"t":{"$date":"2022-04-11T01:31:01.159Z"},"s":"I", "c":"CONTROL", "id":31445, "ctx":"thread1","msg":"Frame","attr":{"frame":{"a":"7F1BB7328CBD","b":"7F1BB6D77000","o":"5B1CBD","s":"_ZN5mongo15invariantFailedEPKcS1_j","C":"mongo::invariantFailed(char const*, char const*, unsigned int)","s+":"179"}}} {"t":{"$date":"2022-04-11T01:31:01.159Z"},"s":"I", "c":"CONTROL", "id":31445, "ctx":"thread1","msg":"Frame","attr":{"frame":{"a":"55A891B0D31F","b":"55A89169A000","o":"47331F","s":"_ZN5mongo21invariantWithLocationIbEEvRKT_PKcS5_j","C":"void mongo::invariantWithLocation<bool>(bool const&, char const*, char const*, unsigned int)","s+":"3F"}}} {"t":{"$date":"2022-04-11T01:31:01.159Z"},"s":"I", "c":"CONTROL", "id":31445, "ctx":"thread1","msg":"Frame","attr":{"frame":{"a":"7F1BB452B43B","b":"7F1BB41C2000","o":"36943B","s":"_ZNK5mongo21WiredTigerRecordStore10findRecordEPNS_16OperationContextERKNS_8RecordIdEPNS_10RecordDataE","C":"mongo::WiredTigerRecordStore::findRecord(mongo::OperationContext*, mongo::RecordId const&, mongo::RecordData*) const","s+":"BD"}}} {"t":{"$date":"2022-04-11T01:31:01.160Z"},"s":"I", "c":"CONTROL", "id":31445, "ctx":"thread1","msg":"Frame","attr":{"frame":{"a":"7F1BC35ED609","b":"7F1BC3171000","o":"47C609","s":"_ZN5mongo3sbe15HashLookupStage26readIndicesFromRecordStoreEPNS_11RecordStoreENS0_5value8TypeTagsEm","C":"mongo::sbe::HashLookupStage::readIndicesFromRecordStore(mongo::RecordStore*, mongo::sbe::value::TypeTags, unsigned long)","s+":"FB"}}} {"t":{"$date":"2022-04-11T01:31:01.160Z"},"s":"I", "c":"CONTROL", "id":31445, "ctx":"thread1","msg":"Frame","attr":{"frame":{"a":"7F1BC35EE06A","b":"7F1BC3171000","o":"47D06A","s":"_ZN5mongo3sbe15HashLookupStage7getNextEv","C":"mongo::sbe::HashLookupStage::getNext()","s+":"62C"}}} {"t":{"$date":"2022-04-11T01:31:01.160Z"},"s":"I", "c":"CONTROL", "id":31445, "ctx":"thread1","msg":"Frame","attr":{"frame":{"a":"7F1BC366EEB3","b":"7F1BC3171000","o":"4FDEB3","s":"_ZN5mongo3sbe19StageResultsPrinterISoE17printStageResultsEPNS0_10CompileCtxERKSt6vectorISt4pairIlNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEESaISD_EEPNS0_9PlanStageE","C":"mongo::sbe::StageResultsPrinter<std::ostream>::printStageResults(mongo::sbe::CompileCtx*, std::vector<std::pair<long, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > >, std::allocator<std::pair<long, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > > > > const&, mongo::sbe::PlanStage*)","s+":"187"}}} {"t":{"$date":"2022-04-11T01:31:01.160Z"},"s":"I", "c":"CONTROL", "id":31445, "ctx":"thread1","msg":"Frame","attr":{"frame":{"a":"55A891C81083","b":"55A89169A000","o":"5E7083","s":"_ZN5mongo3sbe19HashLookupStageTest29prepareAndEvalStageWithReopenEPNS0_10CompileCtxERSoRKSt6vectorISt4pairIlNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEESaISD_EEPNS0_9PlanStageE","C":"mongo::sbe::HashLookupStageTest::prepareAndEvalStageWithReopen(mongo::sbe::CompileCtx*, std::ostream&, std::vector<std::pair<long, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > >, std::allocator<std::pair<long, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > > > > const&, mongo::sbe::PlanStage*)","s+":"675"}}} {"t":{"$date":"2022-04-11T01:31:01.160Z"},"s":"I", "c":"CONTROL", "id":31445, "ctx":"thread1","msg":"Frame","attr":{"frame":{"a":"55A891C80640","b":"55A89169A000","o":"5E6640","s":"_ZN5mongo3sbe19HashLookupStageTest12runVariationERNS_8unittest17GoldenTestContextERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEERKNS_9BSONArrayESF_bPNS_17CollatorInterfaceE","C":"mongo::sbe::HashLookupStageTest::runVariation(mongo::unittest::GoldenTestContext&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, mongo::BSONArray const&, mongo::BSONArray const&, bool, mongo::CollatorInterface*)","s+":"84A"}}} {"t":{"$date":"2022-04-11T01:31:01.160Z"},"s":"I", "c":"CONTROL", "id":31445, "ctx":"thread1","msg":"Frame","attr":{"frame":{"a":"55A891C7E648","b":"55A89169A000","o":"5E4648","s":"_ZN5mongo3sbe55UnitTest_SuiteNameHashLookupStageTestTestNameBasicTests7_doTestEv","C":"mongo::sbe::UnitTest_SuiteNameHashLookupStageTestTestNameBasicTests::_doTest()","s+":"118"}}} {"t":{"$date":"2022-04-11T01:31:01.160Z"},"s":"I", "c":"CONTROL", "id":31445, "ctx":"thread1","msg":"Frame","attr":{"frame":{"a":"7F1BC893A46C","b":"7F1BC87BD000","o":"17D46C","s":"_ZN5mongo8unittest4Test3runEv","C":"mongo::unittest::Test::run()","s+":"46"}}} {"t":{"$date":"2022-04-11T01:31:01.160Z"},"s":"I", "c":"CONTROL", "id":31445, "ctx":"thread1","msg":"Frame","attr":{"frame":{"a":"55A891C821A5","b":"55A89169A000","o":"5E81A5","s":"_ZZN5mongo8unittest4Test17RegistrationAgentINS_3sbe55UnitTest_SuiteNameHashLookupStageTestTestNameBasicTestsEEC4EPKNS0_8TestInfoEENKUlvE_clEv","C":"mongo::unittest::Test::RegistrationAgent<mongo::sbe::UnitTest_SuiteNameHashLookupStageTestTestNameBasicTests>::RegistrationAgent(mongo::unittest::TestInfo const*)::{lambda()#1}::operator()() const","s+":"79"}}} {"t":{"$date":"2022-04-11T01:31:01.160Z"},"s":"I", "c":"CONTROL", "id":31445, "ctx":"thread1","msg":"Frame","attr":{"frame":{"a":"55A891C83E7E","b":"55A89169A000","o":"5E9E7E","s":"_ZNSt17_Function_handlerIFvvEZN5mongo8unittest4Test17RegistrationAgentINS1_3sbe55UnitTest_SuiteNameHashLookupStageTestTestNameBasicTestsEEC4EPKNS2_8TestInfoEEUlvE_E9_M_invokeERKSt9_Any_data","C":"std::_Function_handler<void (), mongo::unittest::Test::RegistrationAgent<mongo::sbe::UnitTest_SuiteNameHashLookupStageTestTestNameBasicTests>::RegistrationAgent(mongo::unittest::TestInfo const*)::{lambda()#1}>::_M_invoke(std::_Any_data const&)","s+":"20"}}} {"t":{"$date":"2022-04-11T01:31:01.161Z"},"s":"I", "c":"CONTROL", "id":31445, "ctx":"thread1","msg":"Frame","attr":{"frame":{"a":"7F1BC894CE00","b":"7F1BC87BD000","o":"18FE00","s":"_ZNKSt8functionIFvvEEclEv","C":"std::function<void ()>::operator()() const","s+":"32"}}} {"t":{"$date":"2022-04-11T01:31:01.161Z"},"s":"I", "c":"CONTROL", "id":31445, "ctx":"thread1","msg":"Frame","attr":{"frame":{"a":"7F1BC893BB3B","b":"7F1BC87BD000","o":"17EB3B","s":"_ZN5mongo8unittest5Suite3runERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES9_i","C":"mongo::unittest::Suite::run(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, int)","s+":"7D3"}}} {"t":{"$date":"2022-04-11T01:31:01.161Z"},"s":"I", "c":"CONTROL", "id":31445, "ctx":"thread1","msg":"Frame","attr":{"frame":{"a":"7F1BC893C7D4","b":"7F1BC87BD000","o":"17F7D4","s":"_ZN5mongo8unittest5Suite3runERKSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS8_EERKS8_SE_i","C":"mongo::unittest::Suite::run(std::vector<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::allocator<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > > > const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, int)","s+":"3FC"}}} {"t":{"$date":"2022-04-11T01:31:01.161Z"},"s":"I", "c":"CONTROL", "id":31445, "ctx":"thread1","msg":"Frame","attr":{"frame":{"a":"7F1BC8F1AB5E","b":"7F1BC8EFC000","o":"1EB5E","s":"main","s+":"86C"}}} {"t":{"$date":"2022-04-11T01:31:01.161Z"},"s":"I", "c":"CONTROL", "id":31445, "ctx":"thread1","msg":"Frame","attr":{"frame":{"a":"7F1BB49AFC87","b":"7F1BB498E000","o":"21C87","s":"__libc_start_main","s+":"E7"}}} {"t":{"$date":"2022-04-11T01:31:01.161Z"},"s":"I", "c":"CONTROL", "id":31445, "ctx":"thread1","msg":"Frame","attr":{"frame":{"a":"55A891B057AA","b":"55A89169A000","o":"46B7AA","s":"_start","s+":"2A"}}} [1] 11105 abort ~/mongo/build/debug/install/bin/db_sbe_test --suite HashLookupStageTest
ShowTo enable spilling, you can add the following lines to sbe_hash_lookup_test.cpp : auto stageUnqPtr = stage->clone(); stage = stageUnqPtr.get(); prepareTree(ctx, stage); By doing stage->clone() , the new value set for internalQuerySBELookupApproxMemoryUseInBytesBeforeSpill is picked up by the HashLookup stage. However, surprisingly, the following error is shown: ~/mongo/build/debug/install/bin/db_sbe_test --suite HashLookupStageTest 29s ubuntu@ip-10-122-9-106 18:19:56 [4/4 (100%) 23.268s] Compiling test list: build/unittests.txt { "t" :{ "$date" : "2022-04-11T01:31:00.289Z" }, "s" : "I" , "c" : "NETWORK" , "id" :4915701, "ctx" : "thread1" , "msg" : "Initialized wire specification" , "attr" :{ "spec" :{ "incomingExternalClient" :{ "minWireVersion" :0, "maxWireVersion" :17}, "incomingInternalClient" :{ "minWireVersion" :0, "maxWireVersion" :17}, "outgoing" :{ "minWireVersion" :6, "maxWireVersion" :17}, "isInternalClient" : false }}} { "t" :{ "$date" : "2022-04-11T01:31:00.374Z" }, "s" : "I" , "c" : "TEST" , "id" :23063, "ctx" : "thread1" , "msg" : "Running" , "attr" :{ "suite" : "HashLookupStageTest" }} { "t" :{ "$date" : "2022-04-11T01:31:00.374Z" }, "s" : "I" , "c" : "TEST" , "id" :23059, "ctx" : "thread1" , "msg" : "Running" , "attr" :{ "test" : "BasicTests" , "rep" :1, "reps" :1}} { "t" :{ "$date" : "2022-04-11T01:31:00.376Z" }, "s" : "W" , "c" : "ASIO" , "id" :22601, "ctx" : "thread1" , "msg" : "No TransportLayer configured during NetworkInterface startup" } { "t" :{ "$date" : "2022-04-11T01:31:00.376Z" }, "s" : "I" , "c" : "NETWORK" , "id" :4648602, "ctx" : "thread1" , "msg" : "Implicit TCP FastOpen in use." } { "t" :{ "$date" : "2022-04-11T01:31:00.403Z" }, "s" : "I" , "c" : "TEST" , "id" :23051, "ctx" : "thread1" , "msg" : "Created temporary directory: {path}" , "attr" :{ "path" : "/tmp/service_context_d_test_fixture-29c4-66bc-08c2-30cf" }} { "t" :{ "$date" : "2022-04-11T01:31:00.404Z" }, "s" : "I" , "c" : "STORAGE" , "id" :22297, "ctx" : "thread1" , "msg" : "Using the XFS filesystem is strongly recommended with the WiredTiger storage engine. See http: //dochub.mongodb.org/core/prodnotes-filesystem" , "tags" :[ "startupWarnings" ]} { "t" :{ "$date" : "2022-04-11T01:31:00.404Z" }, "s" : "I" , "c" : "STORAGE" , "id" :22315, "ctx" : "thread1" , "msg" : "Opening WiredTiger" , "attr" :{ "config" : "create,cache_size=31247M,session_max=33000,eviction=(threads_min=4,threads_max=4),config_base= false ,statistics=(fast),log=(enabled= true ,remove= true ,path=journal,compressor=),builtin_extension_config=(zstd=(compression_level=0)),file_manager=(close_idle_time=600,close_scan_interval=10,close_handle_minimum=2000),statistics_log=(wait=0),json_output=(error,message),verbose=[recovery_progress:1,checkpoint_progress:1,compact_progress:1,backup:0,checkpoint:0,compact:0,evict:0,history_store:0,recovery:0,rts:0,salvage:0,tiered:0,timestamp:0,transaction:0,verify:0,log:0],debug_mode=(corruption_abort= false ,),debug_mode=(table_logging= true ,checkpoint_retention=4)," }} { "t" :{ "$date" : "2022-04-11T01:31:00.997Z" }, "s" : "I" , "c" : "STORAGE" , "id" :4795906, "ctx" : "thread1" , "msg" : "WiredTiger opened" , "attr" :{ "durationMillis" :593}} { "t" :{ "$date" : "2022-04-11T01:31:00.997Z" }, "s" : "I" , "c" : "RECOVERY" , "id" :23987, "ctx" : "thread1" , "msg" : "WiredTiger recoveryTimestamp" , "attr" :{ "recoveryTimestamp" :{ "$timestamp" :{ "t" :0, "i" :0}}}} { "t" :{ "$date" : "2022-04-11T01:31:01.015Z" }, "s" : "I" , "c" : "WT" , "id" :4366408, "ctx" : "thread1" , "msg" : "No table logging settings modifications are required for existing WiredTiger tables" , "attr" :{ "loggingEnabled" : true }} { "t" :{ "$date" : "2022-04-11T01:31:01.034Z" }, "s" : "F" , "c" : "ASSERT" , "id" :23079, "ctx" : "thread1" , "msg" : "Invariant failure" , "attr" :{ "expr" : "opCtx->lockState()->isReadLocked()" , "file" : "src/mongo/db/storage/wiredtiger/wiredtiger_record_store.cpp" , "line" :1103}} { "t" :{ "$date" : "2022-04-11T01:31:01.034Z" }, "s" : "F" , "c" : "ASSERT" , "id" :23080, "ctx" : "thread1" , "msg" : "\n\n***aborting after invariant() failure\n\n" } { "t" :{ "$date" : "2022-04-11T01:31:01.035Z" }, "s" : "F" , "c" : "CONTROL" , "id" :4757800, "ctx" : "thread1" , "msg" : "Writing fatal message" , "attr" :{ "message" : "Got signal: 6 (Aborted).\n" }} { "t" :{ "$date" : "2022-04-11T01:31:01.158Z" }, "s" : "I" , "c" : "CONTROL" , "id" :31380, "ctx" : "thread1" , "msg" : "BACKTRACE" , "attr" :{ "bt" :{ "backtrace" :[{ "a" : "7F1BB7356E50" , "b" : "7F1BB6D77000" , "o" : "5DFE50" , "s" : "_ZN5mongo18stack_trace_detail12_GLOBAL__N_122LibunwindStepIterationC2ERNS_14StackTraceSinkE" , "C" : "mongo::stack_trace_detail::(anonymous namespace)::LibunwindStepIteration::LibunwindStepIteration(mongo::StackTraceSink&)" , "s+" : "82" },{ "a" : "7F1BB73575F7" , "b" : "7F1BB6D77000" , "o" : "5E05F7" , "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+" : "99" },{ "a" : "7F1BB7357A5F" , "b" : "7F1BB6D77000" , "o" : "5E0A5F" , "s" : "_ZN5mongo15printStackTraceEv" , "C" : "mongo::printStackTrace()" , "s+" : "3C" },{ "a" : "7F1BB734BB6F" , "b" : "7F1BB6D77000" , "o" : "5D4B6F" , "s" : "_ZN5mongo12_GLOBAL__N_123printSignalAndBacktraceEi" , "C" : "mongo::(anonymous namespace)::printSignalAndBacktrace( int )" , "s+" : "6F" },{ "a" : "7F1BB734BCC3" , "b" : "7F1BB6D77000" , "o" : "5D4CC3" , "s" : "abruptQuit" , "s+" : "31" },{ "a" : "7F1BB734BD33" , "b" : "7F1BB6D77000" , "o" : "5D4D33" , "s" : "abruptQuitAction" , "s+" : "1D" },{ "a" : "7F1BB4D91980" , "b" : "7F1BB4D7F000" , "o" : "12980" , "s" : "funlockfile" , "s+" : "50" },{ "a" : "7F1BB49CCE87" , "b" : "7F1BB498E000" , "o" : "3EE87" , "s" : "gsignal" , "s+" : "C7" },{ "a" : "7F1BB49CE7F1" , "b" : "7F1BB498E000" , "o" : "407F1" , "s" : "abort" , "s+" : "141" },{ "a" : "7F1BB7328CBD" , "b" : "7F1BB6D77000" , "o" : "5B1CBD" , "s" : "_ZN5mongo15invariantFailedEPKcS1_j" , "C" : "mongo::invariantFailed( char const *, char const *, unsigned int )" , "s+" : "179" },{ "a" : "55A891B0D31F" , "b" : "55A89169A000" , "o" : "47331F" , "s" : "_ZN5mongo21invariantWithLocationIbEEvRKT_PKcS5_j" , "C" : "void mongo::invariantWithLocation<bool>(bool const &, char const *, char const *, unsigned int )" , "s+" : "3F" },{ "a" : "7F1BB452B43B" , "b" : "7F1BB41C2000" , "o" : "36943B" , "s" : "_ZNK5mongo21WiredTigerRecordStore10findRecordEPNS_16OperationContextERKNS_8RecordIdEPNS_10RecordDataE" , "C" : "mongo::WiredTigerRecordStore::findRecord(mongo::OperationContext*, mongo::RecordId const &, mongo::RecordData*) const " , "s+" : "BD" },{ "a" : "7F1BC35ED609" , "b" : "7F1BC3171000" , "o" : "47C609" , "s" : "_ZN5mongo3sbe15HashLookupStage26readIndicesFromRecordStoreEPNS_11RecordStoreENS0_5value8TypeTagsEm" , "C" : "mongo::sbe::HashLookupStage::readIndicesFromRecordStore(mongo::RecordStore*, mongo::sbe::value::TypeTags, unsigned long )" , "s+" : "FB" },{ "a" : "7F1BC35EE06A" , "b" : "7F1BC3171000" , "o" : "47D06A" , "s" : "_ZN5mongo3sbe15HashLookupStage7getNextEv" , "C" : "mongo::sbe::HashLookupStage::getNext()" , "s+" : "62C" },{ "a" : "7F1BC366EEB3" , "b" : "7F1BC3171000" , "o" : "4FDEB3" , "s" : "_ZN5mongo3sbe19StageResultsPrinterISoE17printStageResultsEPNS0_10CompileCtxERKSt6vectorISt4pairIlNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEESaISD_EEPNS0_9PlanStageE" , "C" : "mongo::sbe::StageResultsPrinter<std::ostream>::printStageResults(mongo::sbe::CompileCtx*, std::vector<std::pair< long , std::__cxx11::basic_string< char , std::char_traits< char >, std::allocator< char > > >, std::allocator<std::pair< long , std::__cxx11::basic_string< char , std::char_traits< char >, std::allocator< char > > > > > const &, mongo::sbe::PlanStage*)" , "s+" : "187" },{ "a" : "55A891C81083" , "b" : "55A89169A000" , "o" : "5E7083" , "s" : "_ZN5mongo3sbe19HashLookupStageTest29prepareAndEvalStageWithReopenEPNS0_10CompileCtxERSoRKSt6vectorISt4pairIlNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEESaISD_EEPNS0_9PlanStageE" , "C" : "mongo::sbe::HashLookupStageTest::prepareAndEvalStageWithReopen(mongo::sbe::CompileCtx*, std::ostream&, std::vector<std::pair< long , std::__cxx11::basic_string< char , std::char_traits< char >, std::allocator< char > > >, std::allocator<std::pair< long , std::__cxx11::basic_string< char , std::char_traits< char >, std::allocator< char > > > > > const &, mongo::sbe::PlanStage*)" , "s+" : "675" },{ "a" : "55A891C80640" , "b" : "55A89169A000" , "o" : "5E6640" , "s" : "_ZN5mongo3sbe19HashLookupStageTest12runVariationERNS_8unittest17GoldenTestContextERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEERKNS_9BSONArrayESF_bPNS_17CollatorInterfaceE" , "C" : "mongo::sbe::HashLookupStageTest::runVariation(mongo::unittest::GoldenTestContext&, std::__cxx11::basic_string< char , std::char_traits< char >, std::allocator< char > > const &, mongo::BSONArray const &, mongo::BSONArray const &, bool, mongo::CollatorInterface*)" , "s+" : "84A" },{ "a" : "55A891C7E648" , "b" : "55A89169A000" , "o" : "5E4648" , "s" : "_ZN5mongo3sbe55UnitTest_SuiteNameHashLookupStageTestTestNameBasicTests7_doTestEv" , "C" : "mongo::sbe::UnitTest_SuiteNameHashLookupStageTestTestNameBasicTests::_doTest()" , "s+" : "118" },{ "a" : "7F1BC893A46C" , "b" : "7F1BC87BD000" , "o" : "17D46C" , "s" : "_ZN5mongo8unittest4Test3runEv" , "C" : "mongo::unittest::Test::run()" , "s+" : "46" },{ "a" : "55A891C821A5" , "b" : "55A89169A000" , "o" : "5E81A5" , "s" : "_ZZN5mongo8unittest4Test17RegistrationAgentINS_3sbe55UnitTest_SuiteNameHashLookupStageTestTestNameBasicTestsEEC4EPKNS0_8TestInfoEENKUlvE_clEv" , "C" : "mongo::unittest::Test::RegistrationAgent<mongo::sbe::UnitTest_SuiteNameHashLookupStageTestTestNameBasicTests>::RegistrationAgent(mongo::unittest::TestInfo const *)::{lambda()#1}:: operator ()() const " , "s+" : "79" },{ "a" : "55A891C83E7E" , "b" : "55A89169A000" , "o" : "5E9E7E" , "s" : "_ZNSt17_Function_handlerIFvvEZN5mongo8unittest4Test17RegistrationAgentINS1_3sbe55UnitTest_SuiteNameHashLookupStageTestTestNameBasicTestsEEC4EPKNS2_8TestInfoEEUlvE_E9_M_invokeERKSt9_Any_data" , "C" : "std::_Function_handler<void (), mongo::unittest::Test::RegistrationAgent<mongo::sbe::UnitTest_SuiteNameHashLookupStageTestTestNameBasicTests>::RegistrationAgent(mongo::unittest::TestInfo const *)::{lambda()#1}>::_M_invoke(std::_Any_data const &)" , "s+" : "20" },{ "a" : "7F1BC894CE00" , "b" : "7F1BC87BD000" , "o" : "18FE00" , "s" : "_ZNKSt8functionIFvvEEclEv" , "C" : "std::function<void ()>:: operator ()() const " , "s+" : "32" },{ "a" : "7F1BC893BB3B" , "b" : "7F1BC87BD000" , "o" : "17EB3B" , "s" : "_ZN5mongo8unittest5Suite3runERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES9_i" , "C" : "mongo::unittest::Suite::run(std::__cxx11::basic_string< char , std::char_traits< char >, std::allocator< char > > const &, std::__cxx11::basic_string< char , std::char_traits< char >, std::allocator< char > > const &, int )" , "s+" : "7D3" },{ "a" : "7F1BC893C7D4" , "b" : "7F1BC87BD000" , "o" : "17F7D4" , "s" : "_ZN5mongo8unittest5Suite3runERKSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS8_EERKS8_SE_i" , "C" : "mongo::unittest::Suite::run(std::vector<std::__cxx11::basic_string< char , std::char_traits< char >, std::allocator< char > >, std::allocator<std::__cxx11::basic_string< char , std::char_traits< char >, std::allocator< char > > > > const &, std::__cxx11::basic_string< char , std::char_traits< char >, std::allocator< char > > const &, std::__cxx11::basic_string< char , std::char_traits< char >, std::allocator< char > > const &, int )" , "s+" : "3FC" },{ "a" : "7F1BC8F1AB5E" , "b" : "7F1BC8EFC000" , "o" : "1EB5E" , "s" : "main" , "s+" : "86C" },{ "a" : "7F1BB49AFC87" , "b" : "7F1BB498E000" , "o" : "21C87" , "s" : "__libc_start_main" , "s+" : "E7" },{ "a" : "55A891B057AA" , "b" : "55A89169A000" , "o" : "46B7AA" , "s" : "_start" , "s+" : "2A" }], "processInfo" :{ "mongodbVersion" : "unknown" , "gitVersion" : "none" , "compiledModules" :[ "unknown" ], "uname" :{ "sysname" : "Linux" , "release" : "5.4.0-1068-aws" , "version" : "#72~18.04.1-Ubuntu SMP Thu Mar 3 08:49:49 UTC 2022" , "machine" : "x86_64" }, "somap" :[{ "b" : "55A89169A000" , "elfType" :3, "buildId" : "802B934F0F5AFA5B294EB947B3192FC49CD93716" },{ "b" : "7F1BC8EFC000" , "path" : "/home/ubuntu/mongo/build/debug/install/bin/../lib/libunittest_main.so" , "elfType" :3, "buildId" : "2F83EF7B6ACF2FCE8B1E018CF23029BBB31F18B6" },{ "b" : "7F1BC87BD000" , "path" : "/home/ubuntu/mongo/build/debug/install/bin/../lib/libunittest.so" , "elfType" :3, "buildId" : "B89F810D40FE78B2366EE43412E4651C4943159A" },{ "b" : "7F1BC3171000" , "path" : "/home/ubuntu/mongo/build/debug/install/bin/../lib/libquery_sbe.so" , "elfType" :3, "buildId" : "7767E7AD955AE0E3D7A3C68BDA974CA16B5E8B07" },{ "b" : "7F1BB6D77000" , "path" : "/home/ubuntu/mongo/build/debug/install/bin/../lib/libbase.so" , "elfType" :3, "buildId" : "4CA5F88DBED21AB67F6E8A46C03CCC0DAD9D2F18" },{ "b" : "7F1BB4D7F000" , "path" : "/lib/x86_64-linux-gnu/libpthread.so.0" , "elfType" :3, "buildId" : "8B60B9F8D9A27F2264A0D8E6C0768B3B02C29926" },{ "b" : "7F1BB498E000" , "path" : "/lib/x86_64-linux-gnu/libc.so.6" , "elfType" :3, "buildId" : "71F0F3074A929E519E85F6A5C03A7D1FD976BFE4" },{ "b" : "7F1BB41C2000" , "path" : "/home/ubuntu/mongo/build/debug/install/bin/../lib/../lib/libstorage_wiredtiger_core.so" , "elfType" :3, "buildId" : "29B6F3D34FFD70177122059E429C5101A6273A4A" }]}}}, "tags" :[]} { "t" :{ "$date" : "2022-04-11T01:31:01.158Z" }, "s" : "I" , "c" : "CONTROL" , "id" :31445, "ctx" : "thread1" , "msg" : "Frame" , "attr" :{ "frame" :{ "a" : "7F1BB7356E50" , "b" : "7F1BB6D77000" , "o" : "5DFE50" , "s" : "_ZN5mongo18stack_trace_detail12_GLOBAL__N_122LibunwindStepIterationC2ERNS_14StackTraceSinkE" , "C" : "mongo::stack_trace_detail::(anonymous namespace)::LibunwindStepIteration::LibunwindStepIteration(mongo::StackTraceSink&)" , "s+" : "82" }}} { "t" :{ "$date" : "2022-04-11T01:31:01.158Z" }, "s" : "I" , "c" : "CONTROL" , "id" :31445, "ctx" : "thread1" , "msg" : "Frame" , "attr" :{ "frame" :{ "a" : "7F1BB73575F7" , "b" : "7F1BB6D77000" , "o" : "5E05F7" , "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+" : "99" }}} { "t" :{ "$date" : "2022-04-11T01:31:01.158Z" }, "s" : "I" , "c" : "CONTROL" , "id" :31445, "ctx" : "thread1" , "msg" : "Frame" , "attr" :{ "frame" :{ "a" : "7F1BB7357A5F" , "b" : "7F1BB6D77000" , "o" : "5E0A5F" , "s" : "_ZN5mongo15printStackTraceEv" , "C" : "mongo::printStackTrace()" , "s+" : "3C" }}} { "t" :{ "$date" : "2022-04-11T01:31:01.159Z" }, "s" : "I" , "c" : "CONTROL" , "id" :31445, "ctx" : "thread1" , "msg" : "Frame" , "attr" :{ "frame" :{ "a" : "7F1BB734BB6F" , "b" : "7F1BB6D77000" , "o" : "5D4B6F" , "s" : "_ZN5mongo12_GLOBAL__N_123printSignalAndBacktraceEi" , "C" : "mongo::(anonymous namespace)::printSignalAndBacktrace( int )" , "s+" : "6F" }}} { "t" :{ "$date" : "2022-04-11T01:31:01.159Z" }, "s" : "I" , "c" : "CONTROL" , "id" :31445, "ctx" : "thread1" , "msg" : "Frame" , "attr" :{ "frame" :{ "a" : "7F1BB734BCC3" , "b" : "7F1BB6D77000" , "o" : "5D4CC3" , "s" : "abruptQuit" , "s+" : "31" }}} { "t" :{ "$date" : "2022-04-11T01:31:01.159Z" }, "s" : "I" , "c" : "CONTROL" , "id" :31445, "ctx" : "thread1" , "msg" : "Frame" , "attr" :{ "frame" :{ "a" : "7F1BB734BD33" , "b" : "7F1BB6D77000" , "o" : "5D4D33" , "s" : "abruptQuitAction" , "s+" : "1D" }}} { "t" :{ "$date" : "2022-04-11T01:31:01.159Z" }, "s" : "I" , "c" : "CONTROL" , "id" :31445, "ctx" : "thread1" , "msg" : "Frame" , "attr" :{ "frame" :{ "a" : "7F1BB4D91980" , "b" : "7F1BB4D7F000" , "o" : "12980" , "s" : "funlockfile" , "s+" : "50" }}} { "t" :{ "$date" : "2022-04-11T01:31:01.159Z" }, "s" : "I" , "c" : "CONTROL" , "id" :31445, "ctx" : "thread1" , "msg" : "Frame" , "attr" :{ "frame" :{ "a" : "7F1BB49CCE87" , "b" : "7F1BB498E000" , "o" : "3EE87" , "s" : "gsignal" , "s+" : "C7" }}} { "t" :{ "$date" : "2022-04-11T01:31:01.159Z" }, "s" : "I" , "c" : "CONTROL" , "id" :31445, "ctx" : "thread1" , "msg" : "Frame" , "attr" :{ "frame" :{ "a" : "7F1BB49CE7F1" , "b" : "7F1BB498E000" , "o" : "407F1" , "s" : "abort" , "s+" : "141" }}} { "t" :{ "$date" : "2022-04-11T01:31:01.159Z" }, "s" : "I" , "c" : "CONTROL" , "id" :31445, "ctx" : "thread1" , "msg" : "Frame" , "attr" :{ "frame" :{ "a" : "7F1BB7328CBD" , "b" : "7F1BB6D77000" , "o" : "5B1CBD" , "s" : "_ZN5mongo15invariantFailedEPKcS1_j" , "C" : "mongo::invariantFailed( char const *, char const *, unsigned int )" , "s+" : "179" }}} { "t" :{ "$date" : "2022-04-11T01:31:01.159Z" }, "s" : "I" , "c" : "CONTROL" , "id" :31445, "ctx" : "thread1" , "msg" : "Frame" , "attr" :{ "frame" :{ "a" : "55A891B0D31F" , "b" : "55A89169A000" , "o" : "47331F" , "s" : "_ZN5mongo21invariantWithLocationIbEEvRKT_PKcS5_j" , "C" : "void mongo::invariantWithLocation<bool>(bool const &, char const *, char const *, unsigned int )" , "s+" : "3F" }}} { "t" :{ "$date" : "2022-04-11T01:31:01.159Z" }, "s" : "I" , "c" : "CONTROL" , "id" :31445, "ctx" : "thread1" , "msg" : "Frame" , "attr" :{ "frame" :{ "a" : "7F1BB452B43B" , "b" : "7F1BB41C2000" , "o" : "36943B" , "s" : "_ZNK5mongo21WiredTigerRecordStore10findRecordEPNS_16OperationContextERKNS_8RecordIdEPNS_10RecordDataE" , "C" : "mongo::WiredTigerRecordStore::findRecord(mongo::OperationContext*, mongo::RecordId const &, mongo::RecordData*) const " , "s+" : "BD" }}} { "t" :{ "$date" : "2022-04-11T01:31:01.160Z" }, "s" : "I" , "c" : "CONTROL" , "id" :31445, "ctx" : "thread1" , "msg" : "Frame" , "attr" :{ "frame" :{ "a" : "7F1BC35ED609" , "b" : "7F1BC3171000" , "o" : "47C609" , "s" : "_ZN5mongo3sbe15HashLookupStage26readIndicesFromRecordStoreEPNS_11RecordStoreENS0_5value8TypeTagsEm" , "C" : "mongo::sbe::HashLookupStage::readIndicesFromRecordStore(mongo::RecordStore*, mongo::sbe::value::TypeTags, unsigned long )" , "s+" : "FB" }}} { "t" :{ "$date" : "2022-04-11T01:31:01.160Z" }, "s" : "I" , "c" : "CONTROL" , "id" :31445, "ctx" : "thread1" , "msg" : "Frame" , "attr" :{ "frame" :{ "a" : "7F1BC35EE06A" , "b" : "7F1BC3171000" , "o" : "47D06A" , "s" : "_ZN5mongo3sbe15HashLookupStage7getNextEv" , "C" : "mongo::sbe::HashLookupStage::getNext()" , "s+" : "62C" }}} { "t" :{ "$date" : "2022-04-11T01:31:01.160Z" }, "s" : "I" , "c" : "CONTROL" , "id" :31445, "ctx" : "thread1" , "msg" : "Frame" , "attr" :{ "frame" :{ "a" : "7F1BC366EEB3" , "b" : "7F1BC3171000" , "o" : "4FDEB3" , "s" : "_ZN5mongo3sbe19StageResultsPrinterISoE17printStageResultsEPNS0_10CompileCtxERKSt6vectorISt4pairIlNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEESaISD_EEPNS0_9PlanStageE" , "C" : "mongo::sbe::StageResultsPrinter<std::ostream>::printStageResults(mongo::sbe::CompileCtx*, std::vector<std::pair< long , std::__cxx11::basic_string< char , std::char_traits< char >, std::allocator< char > > >, std::allocator<std::pair< long , std::__cxx11::basic_string< char , std::char_traits< char >, std::allocator< char > > > > > const &, mongo::sbe::PlanStage*)" , "s+" : "187" }}} { "t" :{ "$date" : "2022-04-11T01:31:01.160Z" }, "s" : "I" , "c" : "CONTROL" , "id" :31445, "ctx" : "thread1" , "msg" : "Frame" , "attr" :{ "frame" :{ "a" : "55A891C81083" , "b" : "55A89169A000" , "o" : "5E7083" , "s" : "_ZN5mongo3sbe19HashLookupStageTest29prepareAndEvalStageWithReopenEPNS0_10CompileCtxERSoRKSt6vectorISt4pairIlNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEESaISD_EEPNS0_9PlanStageE" , "C" : "mongo::sbe::HashLookupStageTest::prepareAndEvalStageWithReopen(mongo::sbe::CompileCtx*, std::ostream&, std::vector<std::pair< long , std::__cxx11::basic_string< char , std::char_traits< char >, std::allocator< char > > >, std::allocator<std::pair< long , std::__cxx11::basic_string< char , std::char_traits< char >, std::allocator< char > > > > > const &, mongo::sbe::PlanStage*)" , "s+" : "675" }}} { "t" :{ "$date" : "2022-04-11T01:31:01.160Z" }, "s" : "I" , "c" : "CONTROL" , "id" :31445, "ctx" : "thread1" , "msg" : "Frame" , "attr" :{ "frame" :{ "a" : "55A891C80640" , "b" : "55A89169A000" , "o" : "5E6640" , "s" : "_ZN5mongo3sbe19HashLookupStageTest12runVariationERNS_8unittest17GoldenTestContextERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEERKNS_9BSONArrayESF_bPNS_17CollatorInterfaceE" , "C" : "mongo::sbe::HashLookupStageTest::runVariation(mongo::unittest::GoldenTestContext&, std::__cxx11::basic_string< char , std::char_traits< char >, std::allocator< char > > const &, mongo::BSONArray const &, mongo::BSONArray const &, bool, mongo::CollatorInterface*)" , "s+" : "84A" }}} { "t" :{ "$date" : "2022-04-11T01:31:01.160Z" }, "s" : "I" , "c" : "CONTROL" , "id" :31445, "ctx" : "thread1" , "msg" : "Frame" , "attr" :{ "frame" :{ "a" : "55A891C7E648" , "b" : "55A89169A000" , "o" : "5E4648" , "s" : "_ZN5mongo3sbe55UnitTest_SuiteNameHashLookupStageTestTestNameBasicTests7_doTestEv" , "C" : "mongo::sbe::UnitTest_SuiteNameHashLookupStageTestTestNameBasicTests::_doTest()" , "s+" : "118" }}} { "t" :{ "$date" : "2022-04-11T01:31:01.160Z" }, "s" : "I" , "c" : "CONTROL" , "id" :31445, "ctx" : "thread1" , "msg" : "Frame" , "attr" :{ "frame" :{ "a" : "7F1BC893A46C" , "b" : "7F1BC87BD000" , "o" : "17D46C" , "s" : "_ZN5mongo8unittest4Test3runEv" , "C" : "mongo::unittest::Test::run()" , "s+" : "46" }}} { "t" :{ "$date" : "2022-04-11T01:31:01.160Z" }, "s" : "I" , "c" : "CONTROL" , "id" :31445, "ctx" : "thread1" , "msg" : "Frame" , "attr" :{ "frame" :{ "a" : "55A891C821A5" , "b" : "55A89169A000" , "o" : "5E81A5" , "s" : "_ZZN5mongo8unittest4Test17RegistrationAgentINS_3sbe55UnitTest_SuiteNameHashLookupStageTestTestNameBasicTestsEEC4EPKNS0_8TestInfoEENKUlvE_clEv" , "C" : "mongo::unittest::Test::RegistrationAgent<mongo::sbe::UnitTest_SuiteNameHashLookupStageTestTestNameBasicTests>::RegistrationAgent(mongo::unittest::TestInfo const *)::{lambda()#1}:: operator ()() const " , "s+" : "79" }}} { "t" :{ "$date" : "2022-04-11T01:31:01.160Z" }, "s" : "I" , "c" : "CONTROL" , "id" :31445, "ctx" : "thread1" , "msg" : "Frame" , "attr" :{ "frame" :{ "a" : "55A891C83E7E" , "b" : "55A89169A000" , "o" : "5E9E7E" , "s" : "_ZNSt17_Function_handlerIFvvEZN5mongo8unittest4Test17RegistrationAgentINS1_3sbe55UnitTest_SuiteNameHashLookupStageTestTestNameBasicTestsEEC4EPKNS2_8TestInfoEEUlvE_E9_M_invokeERKSt9_Any_data" , "C" : "std::_Function_handler<void (), mongo::unittest::Test::RegistrationAgent<mongo::sbe::UnitTest_SuiteNameHashLookupStageTestTestNameBasicTests>::RegistrationAgent(mongo::unittest::TestInfo const *)::{lambda()#1}>::_M_invoke(std::_Any_data const &)" , "s+" : "20" }}} { "t" :{ "$date" : "2022-04-11T01:31:01.161Z" }, "s" : "I" , "c" : "CONTROL" , "id" :31445, "ctx" : "thread1" , "msg" : "Frame" , "attr" :{ "frame" :{ "a" : "7F1BC894CE00" , "b" : "7F1BC87BD000" , "o" : "18FE00" , "s" : "_ZNKSt8functionIFvvEEclEv" , "C" : "std::function<void ()>:: operator ()() const " , "s+" : "32" }}} { "t" :{ "$date" : "2022-04-11T01:31:01.161Z" }, "s" : "I" , "c" : "CONTROL" , "id" :31445, "ctx" : "thread1" , "msg" : "Frame" , "attr" :{ "frame" :{ "a" : "7F1BC893BB3B" , "b" : "7F1BC87BD000" , "o" : "17EB3B" , "s" : "_ZN5mongo8unittest5Suite3runERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES9_i" , "C" : "mongo::unittest::Suite::run(std::__cxx11::basic_string< char , std::char_traits< char >, std::allocator< char > > const &, std::__cxx11::basic_string< char , std::char_traits< char >, std::allocator< char > > const &, int )" , "s+" : "7D3" }}} { "t" :{ "$date" : "2022-04-11T01:31:01.161Z" }, "s" : "I" , "c" : "CONTROL" , "id" :31445, "ctx" : "thread1" , "msg" : "Frame" , "attr" :{ "frame" :{ "a" : "7F1BC893C7D4" , "b" : "7F1BC87BD000" , "o" : "17F7D4" , "s" : "_ZN5mongo8unittest5Suite3runERKSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS8_EERKS8_SE_i" , "C" : "mongo::unittest::Suite::run(std::vector<std::__cxx11::basic_string< char , std::char_traits< char >, std::allocator< char > >, std::allocator<std::__cxx11::basic_string< char , std::char_traits< char >, std::allocator< char > > > > const &, std::__cxx11::basic_string< char , std::char_traits< char >, std::allocator< char > > const &, std::__cxx11::basic_string< char , std::char_traits< char >, std::allocator< char > > const &, int )" , "s+" : "3FC" }}} { "t" :{ "$date" : "2022-04-11T01:31:01.161Z" }, "s" : "I" , "c" : "CONTROL" , "id" :31445, "ctx" : "thread1" , "msg" : "Frame" , "attr" :{ "frame" :{ "a" : "7F1BC8F1AB5E" , "b" : "7F1BC8EFC000" , "o" : "1EB5E" , "s" : "main" , "s+" : "86C" }}} { "t" :{ "$date" : "2022-04-11T01:31:01.161Z" }, "s" : "I" , "c" : "CONTROL" , "id" :31445, "ctx" : "thread1" , "msg" : "Frame" , "attr" :{ "frame" :{ "a" : "7F1BB49AFC87" , "b" : "7F1BB498E000" , "o" : "21C87" , "s" : "__libc_start_main" , "s+" : "E7" }}} { "t" :{ "$date" : "2022-04-11T01:31:01.161Z" }, "s" : "I" , "c" : "CONTROL" , "id" :31445, "ctx" : "thread1" , "msg" : "Frame" , "attr" :{ "frame" :{ "a" : "55A891B057AA" , "b" : "55A89169A000" , "o" : "46B7AA" , "s" : "_start" , "s+" : "2A" }}} [1] 11105 abort ~/mongo/build/debug/install/bin/db_sbe_test --suite HashLookupStageTest -
QE 2022-04-18
Currently, there are some tests in sbe_hash_lookup_test, which are supposed to test spilling for the HashLookup SBE stage. However, the tests do not actually test spilling, as the changed internalQuerySBELookupApproxMemoryUseInBytesBeforeSpill parameter is not picked up by the HashLookup stage, as this limit is registered as a constant at the construction time of the stage.