serverStatus() command sent to mongos has incomplete query metrics

XMLWordPrintableJSON

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

      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:
              [DO NOT USE] Backlog - Query Execution
              Reporter:
              Ben Shteinfeld
              Votes:
              0 Vote for this issue
              Watchers:
              8 Start watching this issue

                Created:
                Updated:
                Resolved: