[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:
Backports
Documented
is documented by DOCS-11951 Docs for SERVER-19260: Log whether al... Closed
Duplicate
is duplicated by SERVER-36030 Sort stage and disk use is not correc... Closed
Related
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:

 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: SERVER-19260 Log whether allowDiskUse:true aggregations used disk
Branch: master
https://github.com/mongodb/mongo/commit/114b1e828ebba521c440a015a7d02318f96efe55

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.

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