Tripwire assertion in the cost-based plan ranker selection

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Fixed
    • Priority: Major - P3
    • 9.0.0-rc1
    • Affects Version/s: None
    • Component/s: None
    • Query Execution
    • Fully Compatible
    • ALL
    • Hide

       

      db.adminCommand({setParameter:1, automaticCEPlanRankingStrategy: "CBRCostBasedRankerChoice", internalQueryPlanEvaluationMaxResults: 0, internalQueryPlanEvaluationWorks: 1})
      db.a.drop()
      db.a.createIndex({a: 1})
      db.a.createIndex({b: 1})
      db.a.insertOne({})
      db.a.insertOne({})
      db.a.insertOne({})
      db.a.insertOne({})
      db.a.find({a: null, b: null, c: 0})
      Show
        db.adminCommand({setParameter:1, automaticCEPlanRankingStrategy: "CBRCostBasedRankerChoice" , internalQueryPlanEvaluationMaxResults: 0, internalQueryPlanEvaluationWorks: 1}) db.a.drop() db.a.createIndex({a: 1}) db.a.createIndex({b: 1}) db.a.insertOne({}) db.a.insertOne({}) db.a.insertOne({}) db.a.insertOne({}) db.a.find({a: null , b: null , c: 0})
    • QE 2026-07-20
    • 200
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      The following tassert does not hold for when mp maxresults is set to 0:

          tassert(11306805,            "The MP estimation phase should not have filled a full batch",            numResultsMP > estRes.bestPlanNumResults); 

            Assignee:
            Ivan Fefer (Inactive)
            Reporter:
            Kartal Kaan Bozdogan
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: