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

Fix calibrator after adding new feature flag forceBonsai

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 6.2.0-rc0
    • Affects Version/s: None
    • Component/s: None
    • Fully Compatible
    • ALL
    • v6.1
    • QO 2022-09-05

      Explain v2, which is used for SBE/Bonsai queries, is not supported queries against collections with hidden indexes:

      abt_calibration> db.coll.unhideIndex('a_1')
      { hidden_old: true, hidden_new: false, ok: 1 }
      abt_calibration> db.coll.aggregate({$match: {a: 10}}).explain('executionStats').explainVersion
      2
      abt_calibration> db.coll.hideIndex('a_1')
      { hidden_old: false, hidden_new: true, ok: 1 }
      abt_calibration> db.coll.aggregate({$match: {b: 1}}).explain('executionStats').explainVersion
      1
      

            Assignee:
            alexander.ignatyev@mongodb.com Alexander Ignatyev
            Reporter:
            alexander.ignatyev@mongodb.com Alexander Ignatyev
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: