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

    • Type: Icon: Bug Bug
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: 2.0.4, 2.0.6, 2.2.0-rc0
    • Component/s: Sharding
    • None
    • ALL

      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.

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

              Created:
              Updated:
              Resolved: