[SERVER-53501] Incorrect scanned Objects in $unionWith operation Created: 23/Dec/20 Updated: 29/Oct/23 Resolved: 21/Jan/21 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | Aggregation Framework |
| Affects Version/s: | 4.9.0 |
| Fix Version/s: | 4.9.0 |
| Type: | Bug | Priority: | Major - P3 |
| Reporter: | Rishab Joshi (Inactive) | Assignee: | Rishab Joshi (Inactive) |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Issue Links: |
|
||||||||||||
| Backwards Compatibility: | Fully Compatible | ||||||||||||
| Operating System: | ALL | ||||||||||||
| Sprint: | Query 2021-01-11, Query 2021-01-25 | ||||||||||||
| Participants: | |||||||||||||
| Description |
|
scannedObjects in queryExecutor are incorrectly populated for $unionWith operation. Current implementation only takes into account the local collection scanned objects and not the objects scanned by $unionWith.
Consider this scenario:
Output:
queryExecutor stats
We can see scannedObjects is coming out to be 2, but in reality it should be 3. We need to fix this, as part of this ticket.
Refer to ticket for similar issue: |
| Comments |
| Comment by Githook User [ 21/Jan/21 ] |
|
Author: {'name': 'Rishab Joshi', 'email': 'rishab.joshi@mongodb.com'}Message: |
| Comment by Rishab Joshi (Inactive) [ 12/Jan/21 ] |