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

Disallow creation of `system.indexes`

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 3.7.2
    • Affects Version/s: None
    • Component/s: Storage
    • None
    • Minor Change
    • ALL
    • Hide

      db.createCollection("system.indexes")

      Show
      db.createCollection("system.indexes")
    • Storage 2018-01-29, Storage 2018-02-12
    • 0

      Inserting into `system.indexes` is disallowed, but an explicitly create collection command goes through. This has some interesting, problematic side-effects. For example:

      1. Creating a real collection on the KVStorageEngine.
      2. Replicating with a create collection oplog entry.
      3. Dropping a database skips dropping the collection.
      4. Others? system.indexes is often treated specially in the code.

      Particularly between 2 and 3, this prevents us from properly verifying a legally ordered sequence of updates on all document in WiredTiger.

      I would imagine this is also possible on earlier versions, but I haven't verified.

            Assignee:
            tess.avitabile@mongodb.com Tess Avitabile (Inactive)
            Reporter:
            daniel.gottlieb@mongodb.com Daniel Gottlieb (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            7 Start watching this issue

              Created:
              Updated:
              Resolved: