[SERVER-62071] Spilling to disk in a sub-pipeline doesn't properly add a usedDisk: true field to the profiler entry Created: 15/Dec/21  Updated: 29/Oct/23  Resolved: 14/Sep/22

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

Type: Bug Priority: Minor - P4
Reporter: Ted Tuckman Assignee: Gil Alon
Resolution: Fixed Votes: 0
Labels: neweng
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Backwards Compatibility: Fully Compatible
Operating System: ALL
Sprint: QO 2022-01-24, QO 2022-02-07, QO 2022-02-21, QO 2022-03-07, QO 2022-03-21, QO 2022-04-04, QO 2022-04-18, QO 2022-05-02, QO 2022-05-16, QO 2022-05-30, QO 2022-06-13, QO 2022-06-27, QO 2022-07-11, QO 2022-07-25, QO 2022-08-08, QO 2022-08-22, QO 2022-09-05, QO 2022-09-19
Participants:

 Description   

This needs some investigation/verification. The observed example was a setWindowFields stage that seems to spill (spilling code was hit, and the profiler entry is present for the same setWindowFields in a regular pipeline) inside a $lookup's sub-pipeline. The aggregation's profiler entry for the aggregation with the $lookup should also contain a usedDisk: true field.



 Comments   
Comment by Githook User [ 13/Sep/22 ]

Author:

{'name': 'galon1', 'email': 'gil.alon@mongodb.com', 'username': 'galon1'}

Message: SERVER-62071 Add useDisk call to preserve intermediate pipeline values
Branch: master
https://github.com/mongodb/mongo/commit/5135c8e1b640ac0e8ac5cda714ff17e084a107ec

Comment by Jacob Evans [ 02/Jun/22 ]

Up for grabs again

Comment by Jess Balint [ 23/Dec/21 ]

ted.tuckman is this covered here?
https://github.com/10gen/mongo/blob/fe4cf6134b16f102591053d6f4fe11e5cc0eb3ec/jstests/noPassthrough/use_disk.js#L96-L107

Generated at Thu Feb 08 05:54:05 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.