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

Dropping a database while the balancer is switched off will cause the database to reappear after the balancer returns

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major - P3 Major - P3
    • None
    • 2.0.4, 2.0.6, 2.2.0-rc0
    • Sharding
    • None
    • ALL

    Description

      Dropping the database, with the balancer off, doesn't seem to actually drop the database. After the balancer is switched back on the database reappears in the return of 'show dbs'.

      To reproduce:

      • Create a new database, enable sharding and shard a collection in the database.
      • Switch off the balancer: db.settings.update({_id: "balancer"}, {$set: {stopped: true, true)}}
      • Drop the database
      • Show dbs, database should not appear
      • Switch on the balancer: db.settings.update({_id: "balancer"}, {$set: {stopped: true, true)}}
      • Show dbs, database should appear again.

      Database should return with no collections.

      Attachments

        Activity

          People

            Unassigned Unassigned
            andre.defrere@mongodb.com Andre de Frere
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: