|
We need to test that createCollection properly updates the metadata for an unsharded collection.
Setup
- Start a sharded cluster.
- Create a collection (createCollection).
Check config metadata
- Confirm there is an entry (under "_id") for the database in config.databases.
- Confirm there is an entry (under "_id") for the new unsharded collection in config.collections.
- Confirm there is an entry (under "ns") for the new unsharded collection in config.chunks.
Check shard metadata
- Run _flushRoutingTableCacheUpdates on each shard.
- Confirm there is an entry for the new unsharded collection in the config.cache.collections on each shard.
|