[SERVER-19260] Log whether allowDiskUse:true aggregations used disk Created: 02/Jul/15 Updated: 11/May/19 Resolved: 01/Aug/18 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | Aggregation Framework, Diagnostics |
| Affects Version/s: | None |
| Fix Version/s: | 4.1.2 |
| Type: | Improvement | Priority: | Major - P3 |
| Reporter: | Jon Rangel (Inactive) | Assignee: | Minji Kim |
| Resolution: | Done | Votes: | 3 |
| Labels: | QFB, asya, diagnosibility, usability | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Issue Links: |
|
||||||||||||||||||||||||
| Backwards Compatibility: | Fully Compatible | ||||||||||||||||||||||||
| Backport Requested: |
v4.0, v3.6
|
||||||||||||||||||||||||
| Sprint: | Query 2018-07-02, Query 2018-07-16, Query 2018-07-30, Query 2018-08-13 | ||||||||||||||||||||||||
| Participants: | |||||||||||||||||||||||||
| Case: | (copied to CRM) | ||||||||||||||||||||||||
| Description |
|
For an aggregation query using the {allowDiskUse:true} option, there is currently no way to determine if a given query used disk, and if so, how much disk space it used. We should add this information to the slow query log entry in the mongod log and to the database profiler output in system.profile. |
| Comments |
| Comment by Githook User [ 01/Aug/18 ] |
|
Author: {'username': 'minjikim0202', 'name': 'Minji', 'email': 'minjikim0202@gmail.com'}Message: |
| Comment by Asya Kamsky [ 27/Dec/17 ] |
|
Proposal is that this is a boolean thing that gets set if the pipeline used disk (i.e. if it would have failed in absence of allowDiskUse:true option). Logging it in the log line the same way as "scanAndOrder:1" type entries, as diskUse:1 to easily correlate it with the name of the option. |