[SERVER-67903] Move existing sorter statistics to sorterStats class and report them to ServerStatus Created: 08/Jul/22  Updated: 29/Oct/23  Resolved: 22/Dec/22

Status: Closed
Project: Core Server
Component/s: None
Affects Version/s: None
Fix Version/s: 6.3.0-rc0

Type: Task Priority: Major - P3
Reporter: Shin Yee Tan Assignee: Shin Yee Tan
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Depends
is depended on by TOOLS-3230 Investigate changes in SERVER-67903: ... Closed
is depended on by SERVER-71188 Track _numsorted, _bytesSorted, and _... Closed
is depended on by COMPASS-6396 Investigate changes in SERVER-67903: ... Closed
Problem/Incident
causes SERVER-72424 Execution stats for $group always ret... Closed
Related
related to SERVER-60455 serverStatus metrics for external sorter Closed
related to SERVER-72328 Report sorter mem usage to server status Closed
Backwards Compatibility: Fully Compatible
Sprint: Execution Team 2022-10-31, Execution Team 2022-11-14, Execution Team 2022-12-12, Execution Team 2022-11-28, Execution Team 2022-12-26, Execution Team 2023-01-09
Participants:
Linked BF Score: 70

 Description   

Move _numSorted_totalDataSizeSorted, and _memUsed from sorter classes to sorterStats class and report them in ServerStatus. 

This would clean up the sorter class a bit and help with diagnosing the role of the sorter in memory usage problems.



 Comments   
Comment by Githook User [ 22/Dec/22 ]

Author:

{'name': 'Shin Yee Tan', 'email': 'shinyee.tan@mongodb.com', 'username': 'shinyeet'}

Message: SERVER-67903 Move _numSorted and _totalDataSizeSorted to sorterStats class
Branch: master
https://github.com/mongodb/mongo/commit/b6fe5bedd1d4698e2a34ac032900a4b79156fc3a

Generated at Thu Feb 08 06:09:21 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.