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

Dropping a database of a sharded cluster that contains regex characters will not cleanup config docs

    • Type: Icon: Bug Bug
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • 2.1.1
    • Affects Version/s: 1.8.4
    • Component/s: Sharding
    • None
    • ALL

      Preparation: Create a database named "[a-z]+" and create a collection name "test" and shard it.

      From the mongo shell (connected to mongos):

      1. db.getSiblingDB("[a-z]+").dropDatabase();
      2. use config
      3. db.databases.find() // [a-z]+ is not listed -> OK
      4. db.collections.find() // [a-z]+.test is still there -> BUG

            Assignee:
            randolph@mongodb.com Randolph Tan
            Reporter:
            randolph@mongodb.com Randolph Tan
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: