(DropDatabase + Sharding + Prefixed DB Name) = drops multiple collections

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Duplicate
    • Priority: Critical - P2
    • None
    • Affects Version/s: 1.8.0
    • Component/s: Sharding
    • None
    • Environment:
      Ubuntu 10.10
    • ALL
    • None
    • 0
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      See attached or Gist for script to reproduce. Run against an empty sharded test environment as it is dropping data unexpectedly.
      https://gist.github.com/882010

      ------
      Original report: http://groups.google.com/group/mongodb-user/browse_thread/thread/f3c0aee26fca75e9#
      ------

      The basic premise is simple, we have three databases with a "prefixed" name.
      db2 = db.getSisterDB('fred_sharded') // sharded
      db3 = db.getSisterDB('fred_sharded2') // also sharded
      db4 = db.getSisterDB('fred_shardednot') // not sharded

      If I drop db2, data from db3 also loses data:
      db2.runCommand(

      {dropDatabase:1}

      )

      db4 (unsharded) seems unaffected

        1. test_sharded_drop.js
          1 kB
          Gaetan Voyer-Perrault

            Assignee:
            Unassigned
            Reporter:
            Gaetan Voyer-Perrault (Inactive)
            Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: