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

serverStatus() command sent to mongos has incomplete query metrics

    • Type: Icon: Bug Bug
    • Resolution: Won't Do
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • Labels:
      None
    • Query Execution
    • ALL
    • QE 2022-10-17

      serverStatus().metrics.query maintains counters for how many queries used which query framework (classic, SBE, or CQF). When a serverStatus command is issued to a mongos, these counters are always 0.

      This is because these counters are incremented in the getExecutor() codepath which is not run on mongos, but rather on each individual shard/mongod. Thus when mongos receives a serverStatus command and consults these counters locally, they are always 0 since they were never incremented.

            Assignee:
            backlog-query-execution [DO NOT USE] Backlog - Query Execution
            Reporter:
            ben.shteinfeld@mongodb.com Ben Shteinfeld
            Votes:
            0 Vote for this issue
            Watchers:
            8 Start watching this issue

              Created:
              Updated:
              Resolved: