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

Change FCV check to check for CommandNotFound in _shardsvrShardCollection and write to config after creating collections on non-primary shards

    • Type: Icon: Task Task
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 4.0.3, 4.1.3
    • Affects Version/s: None
    • Component/s: Sharding
    • Labels:
      None
    • Fully Compatible
    • v4.0
    • Sharding 2018-08-27, Sharding 2018-09-10, Sharding 2018-09-24
    • 26

      We are backporting the changes to shardCollection so should remove the FCV check in 4.2. Instead we should check if the command failed with CommandNotFound, and if so run the old logic. We should also move writing to the config and catalog to after we send _cloneCollectionOptionsFromPrimaryShard to the other non-primary shards so that if any of them fail, we can retry the command running the old path.

            Assignee:
            janna.golden@mongodb.com Janna Golden
            Reporter:
            janna.golden@mongodb.com Janna Golden
            Votes:
            0 Vote for this issue
            Watchers:
            7 Start watching this issue

              Created:
              Updated:
              Resolved: