-
Type:
Task
-
Resolution: Done
-
Priority:
Major - P3
-
None
-
Affects Version/s: None
-
Component/s: Sharding
-
None
-
Sharding 2018-11-19
-
None
-
3
-
None
-
None
-
None
-
None
-
None
-
None
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.