Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-27610

Audit usages of AutoGetCollectionForRead within the db/pipeline directory

    • Type: Icon: Task Task
    • Resolution: Unresolved
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: Aggregation Framework
    • Labels:
      None
    • Query Execution

      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.

            Assignee:
            backlog-query-execution [DO NOT USE] Backlog - Query Execution
            Reporter:
            charlie.swanson@mongodb.com Charlie Swanson
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated: