[SERVER-27610] Audit usages of AutoGetCollectionForRead within the db/pipeline directory Created: 09/Jan/17  Updated: 06/Dec/22

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

Type: Task Priority: Major - P3
Reporter: Charlie Swanson Assignee: Backlog - Query Execution
Resolution: Unresolved Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Assigned Teams:
Query Execution
Participants:

 Description   

We've been bitten before (SERVER-19392, SERVER-27362, SERVER-24704) by the helper class AutoGetCollectionForRead doing more than intended, and perhaps default to use the helper too often. Within the pipeline directory, we use this helper frequently within stages like $out, $collStats, $lookup, etc. We should make sure these usages aren't doing more than intended by the author, and correct any accidental side-effects such as updating top, changing the operation's namespace as reported by currentOp, etc.


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