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

    XMLWordPrintable

    Details

    • Type: Task
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 4.0.3, 4.1.3
    • Component/s: Sharding
    • Labels:
      None
    • Backwards Compatibility:
      Fully Compatible
    • Backport Requested:
      v4.0
    • Sprint:
      Sharding 2018-08-27, Sharding 2018-09-10, Sharding 2018-09-24
    • Linked BF Score:
      26

      Description

      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.

        Attachments

          Activity

            People

            • Votes:
              0 Vote for this issue
              Watchers:
              8 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: