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

Support specifying a collection by its UUID to the aggregate command

    XMLWordPrintableJSON

Details

    • Fully Compatible
    • Sharding 2020-09-07

    Description

      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.

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: