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

Dropping system.views should be allowed

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 3.4.0-rc3
    • Component/s: Storage
    • Labels:
    • Backwards Compatibility:
      Fully Compatible
    • Operating System:
      ALL
    • Steps To Reproduce:
      Hide

      db.coll.createView("a", "b", []);
      

      Show
      db.coll.createView("a", "b", []);
    • Sprint:
      Integration 2016-10-10, Integration 2016-10-31, Storage 2016-11-21

      Description

      There is a left-over check that prohibits dropping system.views while in 3.4 compatibility mode, as at one point the presence of a system.views collection was used to make sure initial sync on 3.2 would fail in 3.4 compatibility mode. However, now we use V2 indexes for that, so this is no longer needed.

      Additionally, the design of views requires them to be droppable, as replication may need to drop a system.views collection during rollback. We should also add a test for this.

        Attachments

          Activity

            People

            Assignee:
            geert.bosch Geert Bosch
            Reporter:
            geert.bosch Geert Bosch
            Participants:
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: