Currently we implicitly create an unsharded collection on the following paths:
- aggregation
- renameCollection
- convertToCapped
- mapReduce
- moveChunk (on the recipient when receiving the first chunk for a collection)
- movePrimary (on the recipient)
We want disallow implicit collection creation for all namespaces that are not any of:
- temp collections
- collections on the config server
- local/admin collections
- system.profile
If a namespace does not fall into any of these categories, we should throw CannotImplicitlyCreateCollection.
- is depended on by
-
SERVER-42379 Audit for where an unsharded collection is created directly
- Closed
- related to
-
SERVER-43198 Zombie writes from failing $merge should not be able to re-create a collection
- Backlog