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

Support specifying a collection by its UUID to the aggregate command

    • Fully Compatible
    • Sharding 2020-09-07

      This allows the sender of the command to rely on NamespaceNotFound if the collection has been dropped, even if a collection with the same name was later re-created.

      It should be fine for the AutoGetCollectionForRead in DocumentSourceCursor::loadBatch() to continue to using a NamespaceString rather than a UUID because the PlanExecutor is guaranteed to be killed (and for the aggregation pipeline to eventually error) if the collection is dropped while the cursor is being iterated.

            Assignee:
            jack.mulrow@mongodb.com Jack Mulrow
            Reporter:
            max.hirschhorn@mongodb.com Max Hirschhorn
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: