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

shardCollection should ask primary shard for collection UUID if in schema version 3.6

    XMLWordPrintableJSON

Details

    • Icon: Task Task
    • Resolution: Duplicate
    • Icon: Major - P3 Major - P3
    • None
    • 3.5.10
    • Sharding
    • None
    • Minor Change
    • Sharding 2017-07-31, Sharding 2017-08-21, Sharding 2017-09-11, Sharding 2017-10-02, Sharding 2017-10-23

    Description

      shardCollection should not be allowed to run in a mixed-FCV cluster, because it can result in the collection that is being sharded not having a UUID stored in config.collections on the config server:

      1) setFCV="3.6" called against a mongos, which forwards _configsvrSetFCV to the config server
      2) configsvrSetFCV finishes generating UUIDs for existing sharded collections
      3) shardCollection is called
      --> the FCV on the config server has not been set to 3.6 yet, so shardCollection will not ask the primary shard for a UUID
      --> and even if it did ask, the primary shard may not have had setFCV called on it yet, and so would not return a UUID
      --> so an entry for the newly sharded collection will get written to config.collections without a UUID

      Attachments

        Activity

          People

            esha.maharishi@mongodb.com Esha Maharishi (Inactive)
            esha.maharishi@mongodb.com Esha Maharishi (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: