-
Type: Bug
-
Resolution: Unresolved
-
Priority: Major - P3
-
None
-
Affects Version/s: None
-
Component/s: None
-
None
-
Catalog and Routing
-
ALL
In SERVER-94991 we made so that CleanupEverN test hook, after every test execution, will drop all the databases created by the test. The hook simply call listDatabases and for each database issue a dropDatabase command.
This ensures that the subsequent test will see a "clean" state and that they don't need to worry about previously created dbs or collections.
Due to the bug described in SERVER-54377 listDatabases only returns databases that contain at least 1 collection. So CleanupEveryN hook will simply skip to drop databases with no collections.
This is problematic for those test that expect no databases to exists. For instance there are tests that try to create a database on a specific shard, these test could potentially fail because the database already exists but on a different shard (e.g. unshard_collection_with_zones.js)
- is related to
-
SERVER-98618 unshard_collection_with_zones.js should drop the database before creating it
- Closed
-
SERVER-54377 listDatabases doesn't include sharded databases without collections
- Closed
- related to
-
SERVER-94991 Investigate making ValidateCollections faster
- Closed