Add test for createCollection

XMLWordPrintableJSON

    • 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

      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.

            Assignee:
            Natalie Tsvetkova
            Reporter:
            Misha Tyulenev (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: