[SERVER-37580] Add test for createCollection Created: 11/Oct/18  Updated: 17/Oct/19  Resolved: 14/Nov/18

Status: Closed
Project: Core Server
Component/s: Sharding
Affects Version/s: None
Fix Version/s: None

Type: Task Priority: Major - P3
Reporter: Misha Tyulenev Assignee: Natalie Tsvetkova
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Sprint: Sharding 2018-11-19
Participants:

 Description   

We need to test that createCollection properly updates the metadata for an unsharded collection.

Setup

  1. Start a sharded cluster.
  2. Create a collection (createCollection).

Check config metadata

  1. Confirm there is an entry (under "_id") for the database in config.databases.
  2. Confirm there is an entry (under "_id") for the new unsharded collection in config.collections.
  3. Confirm there is an entry (under "ns") for the new unsharded collection in config.chunks.

Check shard metadata

  1. Run _flushRoutingTableCacheUpdates on each shard.
  2. Confirm there is an entry for the new unsharded collection in the config.cache.collections on each shard.

Generated at Thu Feb 08 04:46:24 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.