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

Robustify plan_cache_stats_shard_and_host.js to count plan cache entries only for specific plan cache key

    • Fully Compatible
    • ALL
    • v7.0, v6.3, v6.0, v5.0, v4.4
    • QE 2023-05-15
    • 20

      Currently, plan_cache_stats_shard_and_host.js compares number of shards for a collection to the total number of plan cache entries. This fails if we have additional cache entries due to queries run on the collection in the background. To address this issue, we should compare the number of shards in a collection with the number of plan cache entries that correspond specifically to the query's planCacheKey tested by the script.

            Assignee:
            adi.agrawal@mongodb.com Adi Agrawal
            Reporter:
            adi.agrawal@mongodb.com Adi Agrawal
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: