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

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

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 3.6.0-rc1
    • Component/s: Usability
    • Labels:
      None
    • Backwards Compatibility:
      Fully Compatible
    • Sprint:
      Storage 2017-10-23

      Description

      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.

        Attachments

          Issue Links

            Activity

              People

              • Votes:
                0 Vote for this issue
                Watchers:
                11 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: