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

XMLWordPrintableJSON

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

      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
            Reporter:
            Andre de Frere
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: