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

applyOps should return NamespaceNotFound when applying a CRUD operation on a non-existent collection/database

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Major - P3
    • Resolution: Fixed
    • None
    • 3.4.10, 3.6.0-rc0
    • Replication
    • None
    • Fully Compatible
    • ALL
    • 0

    Description

      Currently applyOps relies on lower level subsystems such as the catalog or query execution subsystem to handle CRUD operations that refer to non-existent collections or databases. Some CRUD operations, such as update/upserts, may implicitly create a collection as a result. We should uniformly reject any CRUD operations on non-existent namespaces in apply_ops.cpp (within the _applyOps() function).

      Attachments

        Issue Links

          Activity

            People

              benety.goh@mongodb.com Benety Goh
              benety.goh@mongodb.com Benety Goh
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: