[SERVER-68873] serverStatus() command sent to mongos has incomplete query metrics Created: 16/Aug/22 Updated: 25/Jul/23 Resolved: 25/Jul/23 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | None |
| Affects Version/s: | None |
| Fix Version/s: | None |
| Type: | Bug | Priority: | Major - P3 |
| Reporter: | Ben Shteinfeld | Assignee: | Backlog - Query Execution |
| Resolution: | Won't Do | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Assigned Teams: |
Query Execution
|
| Operating System: | ALL |
| Sprint: | QE 2022-10-17 |
| Participants: |
| Description |
|
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. |
| Comments |
| Comment by Ana Meza [ 25/Jul/23 ] |
|
During Quick Wins Triage the team decided to close this ticket as Won't Do |
| Comment by Brenda Rodriguez [ 06/Sep/22 ] |
|
ben.shteinfeld@mongodb.com any updates on this? Thanks! |
| Comment by Ana Meza [ 30/Aug/22 ] |
|
ben.shteinfeld@mongodb.com do you know if server status returns 0 vs missing |