[SERVER-31689] Allow $facet to merge on mongoS if all of its pipelines are eligible Created: 24/Oct/17  Updated: 30/Oct/23  Resolved: 14/Dec/17

Status: Closed
Project: Core Server
Component/s: Aggregation Framework
Affects Version/s: None
Fix Version/s: 3.7.1

Type: Improvement Priority: Major - P3
Reporter: Bernard Gorman Assignee: Bernard Gorman
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Backports
Depends
depends on SERVER-30871 Permit blocking aggregation stages to... Closed
Backwards Compatibility: Fully Compatible
Backport Requested:
v3.6
Sprint: Query 2017-12-18
Participants:

 Description   

Since SERVER-30871, we permit blocking stages to run on mongoS if allowDiskUse is false. The $facet stage was excluded from the list of eligible blocking stages because it requires the injection of a MongodInterface, even when none of its pipelines actually use it; this caused complications in the event that the $facet was run on mongoS.

Following SERVER-29609, however, we now have an equivalent MongosProcessInterface for cases where a pipeline is executing on mongoS, which obviates the issues mentioned above. We should allow $facet to run on mongoS again.



 Comments   
Comment by Githook User [ 14/Dec/17 ]

Author:

{'name': 'Bernard Gorman', 'email': 'bernard.gorman@gmail.com', 'username': 'gormanb'}

Message: SERVER-31689 Allow $facet to merge on mongoS if all its pipelines are eligible
Branch: master
https://github.com/mongodb/mongo/commit/9611f1368349db2fcbe7a7090d7bb7afe0f789af

Generated at Thu Feb 08 04:27:52 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.