Sharded query plan cache commands contain redundant information

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Won't Do
    • Priority: Major - P3
    • None
    • Affects Version/s: 2.6.0-rc0
    • Component/s: Querying
    • Query
    • ALL
    • Hide

      Run QA/QA-453/query_plan_cache_commands_sharded.js, and add printjson() to the TODO comments.

      Show
      Run QA/QA-453/query_plan_cache_commands_sharded.js, and add printjson() to the TODO comments.
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None

      When executing any of the query plan cache commands on a sharded cluster, an extra set of results are returned at the top level. For example, the following output is produced by the planCacheListQueryShapes command in QA/QA-453/query_plan_cache_commands_sharded.js:

      {
              "shapes" : [
                      {
                              "query" : {
                                      "_id" : {
                                              "$lte" : -1
                                      }
                              },
                              "sort" : {
      
                              },
                              "projection" : {
      
                              }
                      }
              ],
              "ok" : 1,
              "shard0000" : {
                      "shapes" : [
                              {
                                      "query" : {
                                              "_id" : {
                                                      "$lte" : -1
                                              }
                                      },
                                      "sort" : {
      
                                      },
                                      "projection" : {
      
                                      }
                              }
                      ],
                      "ok" : 1
              },
              "shard0001" : {
                      "shapes" : [
                              {
                                      "query" : {
                                              "_id" : {
                                                      "$gte" : 1
                                              }
                                      },
                                      "sort" : {
      
                                      },
                                      "projection" : {
      
                                      }
                              }
                      ],
                      "ok" : 1
              }
      }
      

      The same issue applies to planCacheListPlans.

            Assignee:
            Backlog - Query Team (Inactive)
            Reporter:
            Ben Becker (Inactive)
            Votes:
            1 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: