[SERVER-46890] Avoid attaching cursor/mergeCursor stage twice in $unionWith explain Created: 16/Mar/20  Updated: 29/Oct/23  Resolved: 19/Mar/20

Status: Closed
Project: Core Server
Component/s: None
Affects Version/s: None
Fix Version/s: 4.4.0-rc0, 4.7.0

Type: Bug Priority: Major - P3
Reporter: Ted Tuckman Assignee: Ted Tuckman
Resolution: Fixed Votes: 0
Labels: qopt-team
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Backports
Depends
Backwards Compatibility: Fully Compatible
Operating System: ALL
Backport Requested:
v4.4
Steps To Reproduce:

run the following: db.runCommand({explain: {aggregate: "coll", pipeline: [{$unionWith: "coll_2"}], cursor:

{batchSize: 101}

, allowDiskUse: true}})

Sprint: Query 2020-03-23
Participants:
Linked BF Score: 17

 Comments   
Comment by Githook User [ 19/Mar/20 ]

Author:

{'name': 'Ted Tuckman', 'username': 'TedTuckman', 'email': 'ted.tuckman@mongodb.com'}

Message: SERVER-46890 Prevent $unionWith explain attaching a cursor source twice.

(cherry-picked from commit 8f33cc286ef975d99f0df2f40a8568a80fa1f3f3)
Branch: v4.4
https://github.com/mongodb/mongo/commit/027f44f05fc336886c0224707461044aa0c20fb7

Comment by Githook User [ 19/Mar/20 ]

Author:

{'name': 'Ted Tuckman', 'username': 'TedTuckman', 'email': 'ted.tuckman@mongodb.com'}

Message: SERVER-46890 Prevent $unionWith explain attaching a cursor source twice.
Branch: master
https://github.com/mongodb/mongo/commit/8f33cc286ef975d99f0df2f40a8568a80fa1f3f3

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