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

Enable Bonsai plan cache tests involving indices

    • Type: Icon: Task Task
    • Resolution: Unresolved
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • Labels:
      None
    • Query Optimization

      Index scans are currently ineligible for Bonsai Plan Cache, so the corresponding JS test cases are disabled when Bonsai Plan Cache is enabled. Once index scans are supported, these testes should be re-enabled by removing the check for the Bonsai Plan Cache feature flag:

      • jstests/core/query/plan_cache/plan_cache_clear.js
      • jstests/core/query/plan_cache/plan_cache_sbe.js
      • jstests/core/query/plan_cache/plan_cache_sbe_hinted.js

      Other tests will require implementing fast path disablement because the entire test uses indexes. The above three tests provide examples for how to do this in a passthrough test. noPassthrough tests can directly set the query knob for internalCascadesOptimizerDisableFastPath to true.

      • jstests/core/index/index_filter_commands_invalidate_plan_cache_entries.js
      • jstests/core/sbe/from_plan_cache_flag.js
      • jstests/core/sbe_plan_cache_autoparameterize_collscan.js
      • jstests/noPassthrough/plan_cache_hits_and_misses_metrics.js
      • jstests/noPassthrough/sbe_plan_cache_size_metric.js

            Assignee:
            backlog-query-optimization [DO NOT USE] Backlog - Query Optimization
            Reporter:
            william.qian@mongodb.com William Qian
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: