Uploaded image for project: 'MongoDB Shell'
  1. MongoDB Shell
  2. MONGOSH-935

PlanCache does not work on 4.0

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Won't Fix
    • Affects Version/s: None
    • Fix Version/s: No version
    • Component/s: Shell API
    • Labels:
      None
    • Documentation Changes:
      Needed
    • Documentation Changes Summary:
      Hide
      We should document that the {{PlanCache}} class in mongosh does not support the {{.list()}} method on 4.0 servers.

      Those who do need to access the plan cache in some form on 4.0 servers can currently do so by running the {{planCacheListQueryShapes}} command manually.
      Show
      We should document that the {{PlanCache}} class in mongosh does not support the {{.list()}} method on 4.0 servers. Those who do need to access the plan cache in some form on 4.0 servers can currently do so by running the {{planCacheListQueryShapes}} command manually.

      Description

      We use $planCacheStats in the PlanCache class, which is only available in 4.2+ on the server side.

      MONGOSH-938 also has steps to reproduce.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              Unassigned Unassigned
              Reporter:
              anna.henningsen Anna Henningsen
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: