Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-37580

Add test for createCollection

    • Type: Icon: Task Task
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: Sharding
    • Labels:
      None
    • Sharding 2018-11-19

      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@mongodb.com Natalie Tsvetkova
            Reporter:
            misha.tyulenev@mongodb.com Misha Tyulenev (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: