[GODRIVER-1782] Aggregation with $out not always sent to primary Created: 06/Nov/20 Updated: 28/Oct/23 Resolved: 24/Nov/20 |
|
| Status: | Closed |
| Project: | Go Driver |
| Component/s: | None |
| Affects Version/s: | None |
| Fix Version/s: | 1.4.4 |
| Type: | Bug | Priority: | Major - P3 |
| Reporter: | Daniel Ernst | Assignee: | Isabella Siu (Inactive) |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Issue Links: |
|
||||||||
| Description |
|
Based on the check here, the read preference should not be set for an aggregation that contains a $out (or $merge). However, when the pipeline is checked for a $out stage here, it does LookupErr("$out") on an array document that looks like this:
So no top-level $out is found, and the readPref is being set, resulting in a potential error on $out. |
| Comments |
| Comment by Githook User [ 24/Nov/20 ] |
|
Author: {'name': 'Isabella Siu', 'email': 'isabella.siu@mongodb.com', 'username': 'iwysiu'}Message: |
| Comment by Githook User [ 24/Nov/20 ] |
|
Author: {'name': 'Isabella Siu', 'email': 'isabella.siu@mongodb.com', 'username': 'iwysiu'}Message: |