[CSHARP-956] Aggregate command can not be sent to a secondary if it uses $out Created: 20/Apr/14  Updated: 30/Oct/18  Resolved: 23/Apr/14

Status: Closed
Project: C# Driver
Component/s: Operations
Affects Version/s: 1.9
Fix Version/s: 1.9.1

Type: Bug Priority: Major - P3
Reporter: Robert Stam Assignee: Robert Stam
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Depends
is depended on by DRIVERS-582 Aggregate command must be sent to a p... Closed

 Description   

The driver maintains a whitelist of commands that can be sent to a secondary. The aggregate command is currently on this whitelist.

However, with the addition of support for $out, the aggregate command can only be sent to a secondary if it does not use $out, so it is no longer sufficient to merely list it on the whitelist, the actual pipeline has to be examined to decide if it can be sent to a secondary or not.



 Comments   
Comment by Githook User [ 23/Apr/14 ]

Author:

{u'name': u'rstam', u'email': u'robert@10gen.com'}

Message: CSHARP-956: Aggregate command with $out cannot be sent to secondary.
Branch: master
https://github.com/mongodb/mongo-csharp-driver/commit/922cd70e4319f2bd323a475cacdfc7e7807f75ec

Comment by Githook User [ 23/Apr/14 ]

Author:

{u'name': u'rstam', u'email': u'robert@10gen.com'}

Message: CSHARP-956: Aggregate command with $out cannot be sent to secondary.
Branch: v1.x
https://github.com/mongodb/mongo-csharp-driver/commit/14e7c52fe71ad96eec4bdbe0510dff1031ec2252

Generated at Wed Feb 07 21:38:17 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.