[SERVER-77991] $$USER_ROLES not available within aggregation sub-pipeline Created: 12/Jun/23 Updated: 29/Oct/23 Resolved: 08/Sep/23 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | None |
| Affects Version/s: | None |
| Fix Version/s: | 7.2.0-rc0, 7.0.2, 7.1.0-rc3 |
| Type: | Bug | Priority: | Major - P3 |
| Reporter: | Will Buerger | Assignee: | Militsa Sotirova |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Issue Links: |
|
||||||||
| Assigned Teams: |
Query Optimization
|
||||||||
| Backwards Compatibility: | Fully Compatible | ||||||||
| Operating System: | ALL | ||||||||
| Backport Requested: |
v7.1, v7.0
|
||||||||
| Sprint: | QO 2023-09-04, QO 2023-09-18 | ||||||||
| Participants: | |||||||||
| Description |
|
The query
fails with the error "PlanExecutor error during aggregation :: caused by :: error while multiplanner was selecting best plan :: caused by :: Builtin variable '$$USER_ROLES' is not available" (code 51144).
Given that the query
succeeds and behaves as anticipated, I suspect this is due to $$USER_ROLES not being set properly for a sub-pipeline. |
| Comments |
| Comment by Githook User [ 14/Sep/23 ] |
|
Author: {'name': 'Militsa Sotirova', 'email': 'militsa.sotirova@mongodb.com', 'username': 'militsasotirova'}Message: |
| Comment by Githook User [ 14/Sep/23 ] |
|
Author: {'name': 'Militsa Sotirova', 'email': 'militsa.sotirova@mongodb.com', 'username': 'militsasotirova'}Message: |
| Comment by Githook User [ 08/Sep/23 ] |
|
Author: {'name': 'Militsa Sotirova', 'email': 'militsa.sotirova@mongodb.com', 'username': 'militsasotirova'}Message: |
| Comment by Ana Meza [ 13/Jun/23 ] |
|
Passing this to you militsa.sotirova@mongodb.com since you did the work to introduce user roles |