[SERVER-38365] Test that $out cannot be run in combination with stages which must run on mongos Created: 03/Dec/18  Updated: 29/Oct/23  Resolved: 11/Dec/18

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

Type: Task Priority: Major - P3
Reporter: Charlie Swanson Assignee: Jacob Evans
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Backwards Compatibility: Fully Compatible
Sprint: Query 2018-12-17
Participants:

 Description   

For example, the following pipeline is illegal and should error:

db.aggregate([{$listLocalSessions: {}}, {$out: "test"}])

I couldn't find any such test, but I believe this works and we just need to add a test for it.



 Comments   
Comment by Githook User [ 11/Dec/18 ]

Author:

{'name': 'Jacob Evans', 'email': 'jacob.evans@10gen.com'}

Message: SERVER-38365 Test that $out cannot be run after mongos-only stages
Branch: master
https://github.com/mongodb/mongo/commit/abfc6edce84b47411889a4f8abff3a8c739b61ea

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