indexBasedCE: Invariant failure oilA.name == oilB->name in IndexBoundsBuilder::intersectize

XMLWordPrintableJSON

    • Type: Improvement
    • Resolution: Duplicate
    • Priority: Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • None
    • Query Optimization
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      This pipeline:

      [{"$match":{"$nor":[{"k_compound":{"$in":[19]}},{"a_noidx":{"$ne":18}}],"$or":[{"$nor":[{"i_compound":{"$eq":12}},{"z_idx":{"$exists":true}}]},{"a_idx":{"$exists":true}}]}}]
      

      causes the following invariant failure:

      [j0] {"t":{"$date":"2025-08-12T08:27:06.463+00:00"},"s":"F",  "c":"ASSERT",   "id":23079,   "ctx":"conn11","msg":"Invariant failure","attr":{"expr":"oilA.name == oilB->name","location":"src/mongo/db/query/index_bounds_builder.cpp:1290:38:static void mongo::IndexBoundsBuilder::intersectize(const OrderedIntervalList &, OrderedIntervalList *)"}}
      
      [j0] {"t":{"$date":"2025-08-12T08:27:06.751+00:00"},"s":"I",  "c":"CONTROL",  "id":31445,   "ctx":"conn11","msg":"Frame","attr":{"frame":{"a":"C1AFD7D44F28","b":"C1AFCDF30000","o":"9E14F28","s":"_ZN5mongo12_GLOBAL__N_19callAbortEv","C":"mongo::(anonymous namespace)::callAbort()","s+":"40"}}}
      [j0] {"t":{"$date":"2025-08-12T08:27:06.751+00:00"},"s":"I",  "c":"CONTROL",  "id":31445,   "ctx":"conn11","msg":"Frame","attr":{"frame":{"a":"C1AFD7D448B4","b":"C1AFCDF30000","o":"9E148B4","s":"_ZN5mongo12_GLOBAL__N_119invariantFailedImplINS_24WrappedStdSourceLocationEEEvPKcT_","C":"void mongo::(anonymous namespace)::invariantFailedImpl<mongo::WrappedStdSourceLocation>(char const*, mongo::WrappedStdSourceLocation)","s+":"D4"}}}
      [j0] {"t":{"$date":"2025-08-12T08:27:06.751+00:00"},"s":"I",  "c":"CONTROL",  "id":31445,   "ctx":"conn11","msg":"Frame","attr":{"frame":{"a":"C1AFD7D447E0","b":"C1AFCDF30000","o":"9E147E0","s":"_ZN5mongo15invariantFailedEPKcNS_24WrappedStdSourceLocationE","C":"mongo::invariantFailed(char const*, mongo::WrappedStdSourceLocation)","s+":"C"}}}
      [j0] {"t":{"$date":"2025-08-12T08:27:06.751+00:00"},"s":"I",  "c":"CONTROL",  "id":31445,   "ctx":"conn11","msg":"Frame","attr":{"frame":{"a":"C1AFD564D26C","b":"C1AFCDF30000","o":"771D26C","s":"_ZN5mongo18IndexBoundsBuilder12intersectizeERKNS_19OrderedIntervalListEPS1_","C":"mongo::IndexBoundsBuilder::intersectize(mongo::OrderedIntervalList const&, mongo::OrderedIntervalList*)","s+":"2DC"}}}
      [j0] {"t":{"$date":"2025-08-12T08:27:06.751+00:00"},"s":"I",  "c":"CONTROL",  "id":31445,   "ctx":"conn11","msg":"Frame","attr":{"frame":{"a":"C1AFD564CB8C","b":"C1AFCDF30000","o":"771CB8C","s":"_ZN5mongo18IndexBoundsBuilder21translateAndIntersectEPKNS_15MatchExpressionERKNS_11BSONElementERKNS_10IndexEntryEPNS_19OrderedIntervalListEPNS0_15BoundsTightnessEPNS_24interval_evaluation_tree7BuilderE","C":"mongo::IndexBoundsBuilder::translateAndIntersect(mongo::MatchExpression const*, mongo::BSONElement const&, mongo::IndexEntry const&, mongo::OrderedIntervalList*, mongo::IndexBoundsBuilder::BoundsTightness*, mongo::interval_evaluation_tree::Builder*)","s+":"58"}}}
      [j0] {"t":{"$date":"2025-08-12T08:27:06.751+00:00"},"s":"I",  "c":"CONTROL",  "id":31445,   "ctx":"conn11","msg":"Frame","attr":{"frame":{"a":"C1AFD563A400","b":"C1AFCDF30000","o":"770A400","s":"_ZNK5mongo17cost_based_ranker20CardinalityEstimator11buildBoundsEPKNS_15MatchExpressionENS_10IndexEntryE","C":"mongo::cost_based_ranker::CardinalityEstimator::buildBounds(mongo::MatchExpression const*, mongo::IndexEntry) const","s+":"D8"}}}
      [j0] {"t":{"$date":"2025-08-12T08:27:06.751+00:00"},"s":"I",  "c":"CONTROL",  "id":31445,   "ctx":"conn11","msg":"Frame","attr":{"frame":{"a":"C1AFD563A788","b":"C1AFCDF30000","o":"770A788","s":"_ZNK5mongo17cost_based_ranker20CardinalityEstimator37canEstimateMatchExpressionWithIndexCEEPKNS_15MatchExpressionE","C":"mongo::cost_based_ranker::CardinalityEstimator::canEstimateMatchExpressionWithIndexCE(mongo::MatchExpression const*) const","s+":"1B8"}}}
      [j0] {"t":{"$date":"2025-08-12T08:27:06.751+00:00"},"s":"I",  "c":"CONTROL",  "id":31445,   "ctx":"conn11","msg":"Frame","attr":{"frame":{"a":"C1AFD563AD40","b":"C1AFCDF30000","o":"770AD40","s":"_ZN5mongo17cost_based_ranker20CardinalityEstimator8estimateEPKNS_15MatchExpressionEb","C":"mongo::cost_based_ranker::CardinalityEstimator::estimate(mongo::MatchExpression const*, bool)","s+":"2C8"}}}
      [j0] {"t":{"$date":"2025-08-12T08:27:06.751+00:00"},"s":"I",  "c":"CONTROL",  "id":31445,   "ctx":"conn11","msg":"Frame","attr":{"frame":{"a":"C1AFD563816C","b":"C1AFCDF30000","o":"770816C","s":"_ZN5mongo17cost_based_ranker20CardinalityEstimator8estimateEPKNS_9FetchNodeE","C":"mongo::cost_based_ranker::CardinalityEstimator::estimate(mongo::FetchNode const*)","s+":"200"}}}
      [j0] {"t":{"$date":"2025-08-12T08:27:06.751+00:00"},"s":"I",  "c":"CONTROL",  "id":31445,   "ctx":"conn11","msg":"Frame","attr":{"frame":{"a":"C1AFD56365CC","b":"C1AFCDF30000","o":"77065CC","s":"_ZN5mongo17cost_based_ranker20CardinalityEstimator8estimateEPKNS_17QuerySolutionNodeE","C":"mongo::cost_based_ranker::CardinalityEstimator::estimate(mongo::QuerySolutionNode const*)","s+":"2E8"}}}
      [j0] {"t":{"$date":"2025-08-12T08:27:06.751+00:00"},"s":"I",  "c":"CONTROL",  "id":31445,   "ctx":"conn11","msg":"Frame","attr":{"frame":{"a":"C1AFD5638B84","b":"C1AFCDF30000","o":"7708B84","s":"_ZN5mongo17cost_based_ranker20CardinalityEstimator14indexUnionCardITkNS0_9UnionTypeENS_6OrNodeEEENS_10StatusWithINS0_19CardinalityEstimateEEEPKT_","s+":"F0"}}}
      [j0] {"t":{"$date":"2025-08-12T08:27:06.751+00:00"},"s":"I",  "c":"CONTROL",  "id":31445,   "ctx":"conn11","msg":"Frame","attr":{"frame":{"a":"C1AFD5636520","b":"C1AFCDF30000","o":"7706520","s":"_ZN5mongo17cost_based_ranker20CardinalityEstimator8estimateEPKNS_17QuerySolutionNodeE","C":"mongo::cost_based_ranker::CardinalityEstimator::estimate(mongo::QuerySolutionNode const*)","s+":"23C"}}}
      [j0] {"t":{"$date":"2025-08-12T08:27:06.751+00:00"},"s":"I",  "c":"CONTROL",  "id":31445,   "ctx":"conn11","msg":"Frame","attr":{"frame":{"a":"C1AFD5638000","b":"C1AFCDF30000","o":"7708000","s":"_ZN5mongo17cost_based_ranker20CardinalityEstimator8estimateEPKNS_9FetchNodeE","C":"mongo::cost_based_ranker::CardinalityEstimator::estimate(mongo::FetchNode const*)","s+":"94"}}}
      [j0] {"t":{"$date":"2025-08-12T08:27:06.751+00:00"},"s":"I",  "c":"CONTROL",  "id":31445,   "ctx":"conn11","msg":"Frame","attr":{"frame":{"a":"C1AFD56365CC","b":"C1AFCDF30000","o":"77065CC","s":"_ZN5mongo17cost_based_ranker20CardinalityEstimator8estimateEPKNS_17QuerySolutionNodeE","C":"mongo::cost_based_ranker::CardinalityEstimator::estimate(mongo::QuerySolutionNode const*)","s+":"2E8"}}}
      [j0] {"t":{"$date":"2025-08-12T08:27:06.751+00:00"},"s":"I",  "c":"CONTROL",  "id":31445,   "ctx":"conn11","msg":"Frame","attr":{"frame":{"a":"C1AFD55ECA48","b":"C1AFCDF30000","o":"76BCA48","s":"_ZN5mongo12QueryPlanner24planWithCostBasedRankingERKNS_14CanonicalQueryERKNS_18QueryPlannerParamsEPKNS_2ce17SamplingEstimatorEPKNS7_19IndexBasedEstimatorE","C":"mongo::QueryPlanner::planWithCostBasedRanking(mongo::CanonicalQuery const&, mongo::QueryPlannerParams const&, mongo::ce::SamplingEstimator const*, mongo::ce::IndexBasedEstimator const*)","s+":"1B4"}}}
      [j0] {"t":{"$date":"2025-08-12T08:27:06.751+00:00"},"s":"I",  "c":"CONTROL",  "id":31445,   "ctx":"conn11","msg":"Frame","attr":{"frame":{"a":"C1AFD4F90F7C","b":"C1AFCDF30000","o":"7060F7C","s":"_ZN5mongo12_GLOBAL__N_122PrepareExecutionHelperINS_12PlanCacheKeyENS0_27ClassicRuntimePlannerResultEE7prepareEv","C":"mongo::(anonymous namespace)::PrepareExecutionHelper<mongo::PlanCacheKey, mongo::(anonymous namespace)::ClassicRuntimePlannerResult>::prepare()","s+":"AD8"}}}
      [j0] {"t":{"$date":"2025-08-12T08:27:06.751+00:00"},"s":"I",  "c":"CONTROL",  "id":31445,   "ctx":"conn11","msg":"Frame","attr":{"frame":{"a":"C1AFD4F954C0","b":"C1AFCDF30000","o":"70654C0","s":"_ZZN5mongo15getExecutorFindEPNS_16OperationContextERKNS_26MultipleCollectionAccessorESt10unique_ptrINS_14CanonicalQueryESt14default_deleteIS6_EENS_15PlanYieldPolicy11YieldPolicyEmPNS_8PipelineEbN5boost8optionalINS_19TraversalPreferenceEEESt7variantIJNS_23AutomaticShardFilteringENS_24ProofOfUpstreamFilteringEEEENK3$_5clES5_INS_18QueryPlannerParamsES7_ISN_EE","C":"mongo::getExecutorFind(mongo::OperationContext*, mongo::MultipleCollectionAccessor const&, std::unique_ptr<mongo::CanonicalQuery, std::default_delete<mongo::CanonicalQuery> >, mongo::PlanYieldPolicy::YieldPolicy, unsigned long, mongo::Pipeline*, bool, boost::optional<mongo::TraversalPreference>, std::variant<mongo::AutomaticShardFiltering, mongo::ProofOfUpstreamFiltering>)::$_5::operator()(std::unique_ptr<mongo::QueryPlannerParams, std::default_delete<mongo::QueryPlannerParams> >) const","s+":"318"}}}
      [j0] {"t":{"$date":"2025-08-12T08:27:06.751+00:00"},"s":"I",  "c":"CONTROL",  "id":31445,   "ctx":"conn11","msg":"Frame","attr":{"frame":{"a":"C1AFD28B01D0","b":"C1AFCDF30000","o":"49801D0","s":"_ZN5mongo15getExecutorFindEPNS_16OperationContextERKNS_26MultipleCollectionAccessorESt10unique_ptrINS_14CanonicalQueryESt14default_deleteIS6_EENS_15PlanYieldPolicy11YieldPolicyEmPNS_8PipelineEbN5boost8optionalINS_19TraversalPreferenceEEESt7variantIJNS_23AutomaticShardFilteringENS_24ProofOfUpstreamFilteringEEE","C":"mongo::getExecutorFind(mongo::OperationContext*, mongo::MultipleCollectionAccessor const&, std::unique_ptr<mongo::CanonicalQuery, std::default_delete<mongo::CanonicalQuery> >, mongo::PlanYieldPolicy::YieldPolicy, unsigned long, mongo::Pipeline*, bool, boost::optional<mongo::TraversalPreference>, std::variant<mongo::AutomaticShardFiltering, mongo::ProofOfUpstreamFiltering>)","s+":"67C"}}}
      [j0] {"t":{"$date":"2025-08-12T08:27:06.751+00:00"},"s":"I",  "c":"CONTROL",  "id":31445,   "ctx":"conn11","msg":"Frame","attr":{"frame":{"a":"C1AFD4F74030","b":"C1AFCDF30000","o":"7044030","s":"_ZN5mongo12_GLOBAL__N_115prepareExecutorERKN5boost13intrusive_ptrINS_17ExpressionContextEEERKNS_26MultipleCollectionAccessorERKNS_15NamespaceStringEPNS_8PipelineESt6bitsetILm19EERKNS_7BSONObjENS2_INS_19DocumentSourceMatchEEEPKNS_23AggregateCommandRequestERKyPbbmNS1_8optionalINS_19TraversalPreferenceEEESt7variantIJNS_23AutomaticShardFilteringENS_24ProofOfUpstreamFilteringEEE","C":"mongo::(anonymous namespace)::prepareExecutor(boost::intrusive_ptr<mongo::ExpressionContext> const&, mongo::MultipleCollectionAccessor const&, mongo::NamespaceString const&, mongo::Pipeline*, std::bitset<19ul>, mongo::BSONObj const&, boost::intrusive_ptr<mongo::DocumentSourceMatch>, mongo::AggregateCommandRequest const*, unsigned long long const&, bool*, bool, unsigned long, boost::optional<mongo::TraversalPreference>, std::variant<mongo::AutomaticShardFiltering, mongo::ProofOfUpstreamFiltering>)","s+":"3B4"}}}
      [j0] {"t":{"$date":"2025-08-12T08:27:06.751+00:00"},"s":"I",  "c":"CONTROL",  "id":31445,   "ctx":"conn11","msg":"Frame","attr":{"frame":{"a":"C1AFD4F7169C","b":"C1AFCDF30000","o":"704169C","s":"_ZN5mongo9PipelineD30buildInnerQueryExecutorGenericERKNS_26MultipleCollectionAccessorERKNS_15NamespaceStringEPKNS_23AggregateCommandRequestEPNS_8PipelineESt7variantIJNS_23AutomaticShardFilteringENS_24ProofOfUpstreamFilteringEEE","C":"mongo::PipelineD::buildInnerQueryExecutorGeneric(mongo::MultipleCollectionAccessor const&, mongo::NamespaceString const&, mongo::AggregateCommandRequest const*, mongo::Pipeline*, std::variant<mongo::AutomaticShardFiltering, mongo::ProofOfUpstreamFiltering>)","s+":"60C"}}}
      [j0] {"t":{"$date":"2025-08-12T08:27:06.751+00:00"},"s":"I",  "c":"CONTROL",  "id":31445,   "ctx":"conn11","msg":"Frame","attr":{"frame":{"a":"C1AFD29230D8","b":"C1AFCDF30000","o":"49F30D8","s":"_ZN5mongo9PipelineD23buildInnerQueryExecutorERKNS_26MultipleCollectionAccessorERKNS_15NamespaceStringEPKNS_23AggregateCommandRequestEPNS_8PipelineESt7variantIJNS_23AutomaticShardFilteringENS_24ProofOfUpstreamFilteringEEE","C":"mongo::PipelineD::buildInnerQueryExecutor(mongo::MultipleCollectionAccessor const&, mongo::NamespaceString const&, mongo::AggregateCommandRequest const*, mongo::Pipeline*, std::variant<mongo::AutomaticShardFiltering, mongo::ProofOfUpstreamFiltering>)","s+":"344"}}}
      [j0] {"t":{"$date":"2025-08-12T08:27:06.751+00:00"},"s":"I",  "c":"CONTROL",  "id":31445,   "ctx":"conn11","msg":"Frame","attr":{"frame":{"a":"C1AFD2D3E1B8","b":"C1AFCDF30000","o":"4E0E1B8","s":"_ZN5mongo12_GLOBAL__N_116prepareExecutorsERKNS_10AggExStateERNS_15AggCatalogStateESt10unique_ptrINS_8PipelineENS_15PipelineDeleterEE","C":"mongo::(anonymous namespace)::prepareExecutors(mongo::AggExState const&, mongo::AggCatalogState&, std::unique_ptr<mongo::Pipeline, mongo::PipelineDeleter>)","s+":"E0"}}}
      [j0] {"t":{"$date":"2025-08-12T08:27:06.751+00:00"},"s":"I",  "c":"CONTROL",  "id":31445,   "ctx":"conn11","msg":"Frame","attr":{"frame":{"a":"C1AFD2D3B28C","b":"C1AFCDF30000","o":"4E0B28C","s":"_ZN5mongo12_GLOBAL__N_113_runAggregateERNS_10AggExStateEPNS_3rpc21ReplyBuilderInterfaceE","C":"mongo::(anonymous namespace)::_runAggregate(mongo::AggExState&, mongo::rpc::ReplyBuilderInterface*)","s+":"640"}}}
      [j0] {"t":{"$date":"2025-08-12T08:27:06.751+00:00"},"s":"I",  "c":"CONTROL",  "id":31445,   "ctx":"conn11","msg":"Frame","attr":{"frame":{"a":"C1AFD2D3AAE0","b":"C1AFCDF30000","o":"4E0AAE0","s":"_ZN5mongo12runAggregateEPNS_16OperationContextERNS_23AggregateCommandRequestERKNS_18LiteParsedPipelineERKNS_7BSONObjERKSt6vectorINS_9PrivilegeESaISB_EEN5boost8optionalINS_7explain13VerbosityEnumEEEPNS_3rpc21ReplyBuilderInterfaceERKSA_ISt4pairINS_15NamespaceStringESA_INS_22ExternalDataSourceInfoESaISQ_EEESaIST_EE","C":"mongo::runAggregate(mongo::OperationContext*, mongo::AggregateCommandRequest&, mongo::LiteParsedPipeline const&, mongo::BSONObj const&, std::vector<mongo::Privilege, std::allocator<mongo::Privilege> > const&, boost::optional<mongo::explain::VerbosityEnum>, mongo::rpc::ReplyBuilderInterface*, std::vector<std::pair<mongo::NamespaceString, std::vector<mongo::ExternalDataSourceInfo, std::allocator<mongo::ExternalDataSourceInfo> > >, std::allocator<std::pair<mongo::NamespaceString, std::vector<mongo::ExternalDataSourceInfo, std::allocator<mongo::ExternalDataSourceInfo> > > > > const&)","s+":"78"}}}
      [j0] {"t":{"$date":"2025-08-12T08:27:06.751+00:00"},"s":"I",  "c":"CONTROL",  "id":31445,   "ctx":"conn11","msg":"Frame","attr":{"frame":{"a":"C1AFD2D33ACC","b":"C1AFCDF30000","o":"4E03ACC","s":"_ZN5mongo12_GLOBAL__N_115PipelineCommand10Invocation7explainEPNS_16OperationContextENS_7explain13VerbosityEnumEPNS_3rpc21ReplyBuilderInterfaceE","C":"mongo::(anonymous namespace)::PipelineCommand::Invocation::explain(mongo::OperationContext*, mongo::explain::VerbosityEnum, mongo::rpc::ReplyBuilderInterface*)","s+":"4C"}}}
      [j0] {"t":{"$date":"2025-08-12T08:27:06.751+00:00"},"s":"I",  "c":"CONTROL",  "id":31445,   "ctx":"conn11","msg":"Frame","attr":{"frame":{"a":"C1AFD28B369C","b":"C1AFCDF30000","o":"498369C","s":"_ZN5mongo14CommandHelpers20runCommandInvocationEPNS_16OperationContextEPNS_17CommandInvocationEPNS_3rpc21ReplyBuilderInterfaceE","C":"mongo::CommandHelpers::runCommandInvocation(mongo::OperationContext*, mongo::CommandInvocation*, mongo::rpc::ReplyBuilderInterface*)","s+":"178"}}}
      [j0] {"t":{"$date":"2025-08-12T08:27:06.751+00:00"},"s":"I",  "c":"CONTROL",  "id":31445,   "ctx":"conn11","msg":"Frame","attr":{"frame":{"a":"C1AFD428ADC4","b":"C1AFCDF30000","o":"635ADC4","s":"_ZN5mongo12_GLOBAL__N_114RunCommandImpl3runEv","C":"mongo::(anonymous namespace)::RunCommandImpl::run()","s+":"228"}}}
      [j0] {"t":{"$date":"2025-08-12T08:27:06.751+00:00"},"s":"I",  "c":"CONTROL",  "id":31445,   "ctx":"conn11","msg":"Frame","attr":{"frame":{"a":"C1AFD4288780","b":"C1AFCDF30000","o":"6358780","s":"_ZN5mongo12_GLOBAL__N_119ExecCommandDatabase12_commandExecEv","C":"mongo::(anonymous namespace)::ExecCommandDatabase::_commandExec()","s+":"1EC"}}}
      [j0] {"t":{"$date":"2025-08-12T08:27:06.751+00:00"},"s":"I",  "c":"CONTROL",  "id":31445,   "ctx":"conn11","msg":"Frame","attr":{"frame":{"a":"C1AFD42862D4","b":"C1AFCDF30000","o":"63562D4","s":"_ZN5mongo12_GLOBAL__N_114executeCommandERNS0_13HandleRequest16ExecutionContextE","C":"mongo::(anonymous namespace)::executeCommand(mongo::(anonymous namespace)::HandleRequest::ExecutionContext&)","s+":"1B08"}}}
      [j0] {"t":{"$date":"2025-08-12T08:27:06.751+00:00"},"s":"I",  "c":"CONTROL",  "id":31445,   "ctx":"conn11","msg":"Frame","attr":{"frame":{"a":"C1AFD28B7690","b":"C1AFCDF30000","o":"4987690","s":"_ZN5mongo26ServiceEntryPointShardRole13handleRequestEPNS_16OperationContextERKNS_7MessageE","C":"mongo::ServiceEntryPointShardRole::handleRequest(mongo::OperationContext*, mongo::Message const&)","s+":"2F4"}}}
      [j0] {"t":{"$date":"2025-08-12T08:27:06.751+00:00"},"s":"I",  "c":"CONTROL",  "id":31445,   "ctx":"conn11","msg":"Frame","attr":{"frame":{"a":"C1AFD70EF708","b":"C1AFCDF30000","o":"91BF708","s":"_ZZNO5mongo14future_details10FutureImplISt10unique_ptrINS_9transport15SessionWorkflow4Impl8WorkItemESt14default_deleteIS6_EEE4thenIZNS5_15_doOneIterationEvE3$_0EEDaOT_ENKUlOS9_E_clESF_","C":"mongo::future_details::FutureImpl<std::unique_ptr<mongo::transport::SessionWorkflow::Impl::WorkItem, std::default_delete<mongo::transport::SessionWorkflow::Impl::WorkItem> > >::then<mongo::transport::SessionWorkflow::Impl::_doOneIteration()::$_0>(mongo::transport::SessionWorkflow::Impl::_doOneIteration()::$_0&&) &&::{lambda(std::unique_ptr<mongo::transport::SessionWorkflow::Impl::WorkItem, std::default_delete<mongo::transport::SessionWorkflow::Impl::WorkItem> >&&)#1}::operator()(std::unique_ptr<mongo::transport::SessionWorkflow::Impl::WorkItem, std::default_delete<mongo::transport::SessionWorkflow::Impl::WorkItem> >&&) const","s+":"48"}}}
      [j0] {"t":{"$date":"2025-08-12T08:27:06.751+00:00"},"s":"I",  "c":"CONTROL",  "id":31445,   "ctx":"conn11","msg":"Frame","attr":{"frame":{"a":"C1AFD28A2D4C","b":"C1AFCDF30000","o":"4972D4C","s":"_ZN5mongo9transport15SessionWorkflow4Impl15_doOneIterationEv","C":"mongo::transport::SessionWorkflow::Impl::_doOneIteration()","s+":"A8"}}}
      [j0] {"t":{"$date":"2025-08-12T08:27:06.751+00:00"},"s":"I",  "c":"CONTROL",  "id":31445,   "ctx":"conn11","msg":"Frame","attr":{"frame":{"a":"C1AFD70F1390","b":"C1AFCDF30000","o":"91C1390","s":"_ZZN5mongo15unique_functionIFvNS_6StatusEEE8makeImplIZNS_9transport15SessionWorkflow4Impl18_scheduleIterationEvE3$_0EEDaOT_EN12SpecificImpl4callEOS1_","C":"mongo::unique_function<void (mongo::Status)>::makeImpl<mongo::transport::SessionWorkflow::Impl::_scheduleIteration()::$_0>(mongo::transport::SessionWorkflow::Impl::_scheduleIteration()::$_0&&)::SpecificImpl::call(mongo::Status&&)","s+":"60"}}}
      [j0] {"t":{"$date":"2025-08-12T08:27:06.751+00:00"},"s":"I",  "c":"CONTROL",  "id":31445,   "ctx":"conn11","msg":"Frame","attr":{"frame":{"a":"C1AFD70F00AC","b":"C1AFCDF30000","o":"91C00AC","s":"_ZN5mongo12ClientStrand3runIZZNS_9transport15SessionWorkflow4Impl15_captureContextENS_15unique_functionIFvNS_6StatusEEEEENUlS6_E_clES6_EUlvE_JEEEvT_DpOT0_","C":"void mongo::ClientStrand::run<mongo::transport::SessionWorkflow::Impl::_captureContext(mongo::unique_function<void (mongo::Status)>)::{lambda(mongo::Status)#1}::operator()(mongo::Status)::{lambda()#1}>(mongo::transport::SessionWorkflow::Impl::_captureContext(mongo::unique_function<void (mongo::Status)>)::{lambda(mongo::Status)#1}::operator()(mongo::Status)::{lambda()#1})","s+":"8C"}}}
      [j0] {"t":{"$date":"2025-08-12T08:27:06.751+00:00"},"s":"I",  "c":"CONTROL",  "id":31445,   "ctx":"conn11","msg":"Frame","attr":{"frame":{"a":"C1AFD28A13B4","b":"C1AFCDF30000","o":"49713B4","s":"_ZZN5mongo15unique_functionIFvNS_6StatusEEE8makeImplIZNS_9transport15SessionWorkflow4Impl15_captureContextES3_EUlS1_E_EEDaOT_EN12SpecificImpl4callEOS1_","C":"mongo::unique_function<void (mongo::Status)>::makeImpl<mongo::transport::SessionWorkflow::Impl::_captureContext(mongo::unique_function<void (mongo::Status)>)::{lambda(mongo::Status)#1}>(mongo::transport::SessionWorkflow::Impl::_captureContext(mongo::unique_function<void (mongo::Status)>)::{lambda(mongo::Status)#1}&&)::SpecificImpl::call(mongo::Status&&)","s+":"44"}}}
      [j0] {"t":{"$date":"2025-08-12T08:27:06.751+00:00"},"s":"I",  "c":"CONTROL",  "id":31445,   "ctx":"conn11","msg":"Frame","attr":{"frame":{"a":"C1AFD717D458","b":"C1AFCDF30000","o":"924D458","s":"_ZN5mongo9transport35service_executor_synchronous_detail23ServiceExecutorSyncImpl11SharedState16WorkerThreadInfo3runEv","C":"mongo::transport::service_executor_synchronous_detail::ServiceExecutorSyncImpl::SharedState::WorkerThreadInfo::run()","s+":"84"}}}
      [j0] {"t":{"$date":"2025-08-12T08:27:06.751+00:00"},"s":"I",  "c":"CONTROL",  "id":31445,   "ctx":"conn11","msg":"Frame","attr":{"frame":{"a":"C1AFD717D808","b":"C1AFCDF30000","o":"924D808","s":"_ZZN5mongo15unique_functionIFvvEE8makeImplIZNS_9transport35service_executor_synchronous_detail23ServiceExecutorSyncImpl11SharedState8scheduleENS0_IFvNS_6StatusEEEENS_10StringDataEE3$_0EEDaOT_EN12SpecificImpl4callEv","C":"mongo::unique_function<void ()>::makeImpl<mongo::transport::service_executor_synchronous_detail::ServiceExecutorSyncImpl::SharedState::schedule(mongo::unique_function<void (mongo::Status)>, mongo::StringData)::$_0>(mongo::transport::service_executor_synchronous_detail::ServiceExecutorSyncImpl::SharedState::schedule(mongo::unique_function<void (mongo::Status)>, mongo::StringData)::$_0&&)::SpecificImpl::call()","s+":"6C"}}}
      [j0] {"t":{"$date":"2025-08-12T08:27:06.751+00:00"},"s":"I",  "c":"CONTROL",  "id":31445,   "ctx":"conn11","msg":"Frame","attr":{"frame":{"a":"C1AFD717F718","b":"C1AFCDF30000","o":"924F718","s":"_ZZN5mongo15unique_functionIFvvEE8makeImplIZNS_9transport25launchServiceWorkerThreadES2_E3$_0EEDaOT_EN12SpecificImpl4callEv","C":"mongo::unique_function<void ()>::makeImpl<mongo::transport::launchServiceWorkerThread(mongo::unique_function<void ()>)::$_0>(mongo::transport::launchServiceWorkerThread(mongo::unique_function<void ()>)::$_0&&)::SpecificImpl::call()","s+":"84"}}}
      [j0] {"t":{"$date":"2025-08-12T08:27:06.751+00:00"},"s":"I",  "c":"CONTROL",  "id":31445,   "ctx":"conn11","msg":"Frame","attr":{"frame":{"a":"C1AFD717F2AC","b":"C1AFCDF30000","o":"924F2AC","s":"_ZN5mongo9transport12_GLOBAL__N_17runFuncEPv","C":"mongo::transport::(anonymous namespace)::runFunc(void*)","s+":"3C"}}}
      [j0] {"t":{"$date":"2025-08-12T08:27:06.751+00:00"},"s":"I",  "c":"CONTROL",  "id":31445,   "ctx":"conn11","msg":"Frame","attr":{"frame":{"a":"FF1685D2D5C8","b":"FF1685CB0000","o":"7D5C8","s":"start_thread","s+":"2D4"}}}
      

      To reproduce:

      1. Run this on the `master` branch, but with an indexBasedCE-enabled binary:

      buildscripts/resmoke.py run --installDir bazel-bin/install-dist-test/bin --suites=query_golden_classic '--mongodSetParameters={internalQueryFrameworkControl: forceClassicEngine, planRankerMode: indexBasedCE, internalQueryPlannerEnableSortIndexIntersection: False }' jstests/query_golden/plan_stability.js --pauseAfterPopulate
      

      Wait until:

      [js_test:plan_stability] [jsTest] ----
      [js_test:plan_stability] [jsTest] TestData.pauseAfterPopulate is set. Pausing indefinitely ...
      [js_test:plan_stability] [jsTest] ----
      

      2. Run this manually:

      Enterprise test> db.plan_stability.aggregate([{"$match":{"$nor":[{"k_compound":{"$in":[19]}},{"a_noidx":{"$ne":18}}],"$or":[{"$nor":[{"i_compound":{"$eq":12}},{"z_idx":{"$exists":true}}]},{"a_idx":{"$exists":true}}]}}]).explain();
      Uncaught:
      MongoServerSelectionError: connect ECONNREFUSED 127.0.0.1:20000
      Caused by: 
      MongoNetworkError: connect ECONNREFUSED 127.0.0.1:20000
      Caused by: 
      Error: connect ECONNREFUSED 127.0.0.1:20000
      

      I tried simplfying this $match expression further, but it seems that all the individual parts are somehow required.

            Assignee:
            Hana Pearlman
            Reporter:
            Philip Stoev
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: