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

Disallow dropping "admin" and "local" dbs when in replica set mode

    • Type: Icon: Improvement Improvement
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 3.6.0-rc1
    • Affects Version/s: None
    • Component/s: Usability
    • None
    • Fully Compatible
    • Storage 2017-10-23

      Currently, there are no system restrictions on when "admin" and "local" can be dropped. Because the usual protections against writing/dropping system collections are skipped (e.g. dropping a "system.users" collection is normally prohibited), it is too easy to break a running system with a simple dropDatabase command.
      One way this can manifest is by dropping the admin database while a "system.version" exists in it, which can downgrade your feature compatibility version.
      To work around this new restriction and drop these databases, one can restart a node in standalone mode.

            Assignee:
            maria.vankeulen@mongodb.com Maria van Keulen
            Reporter:
            milkie@mongodb.com Eric Milkie
            Votes:
            0 Vote for this issue
            Watchers:
            11 Start watching this issue

              Created:
              Updated:
              Resolved: