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

Audit usages of AutoGetCollectionForRead within the db/pipeline directory

    XMLWordPrintableJSON

Details

    • Icon: Task Task
    • Resolution: Unresolved
    • Icon: Major - P3 Major - P3
    • None
    • None
    • Aggregation Framework
    • None
    • Query Execution

    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.

      Attachments

        Activity

          People

            backlog-query-execution Backlog - Query Execution
            charlie.swanson@mongodb.com Charlie Swanson
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated: