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

movePrimary may fail on clone phase if $out runs concurrently

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 7.1.1, 7.2.0-rc0, 7.0.3
    • Affects Version/s: 7.0.1, 7.1.0-rc4
    • Component/s: None
    • None
    • Sharding EMEA
    • Fully Compatible
    • ALL
    • v7.1, v7.0
    • Sharding EMEA 2023-08-07, Sharding EMEA 2023-08-21, Sharding EMEA 2023-09-04, Sharding EMEA 2023-09-18, Sharding EMEA 2023-10-02

      movePrimary may fail on the clone phase with error 7118501 when $out is executed at the same time.

       

      The sequence of events to end up with the mentioned error is:

      1. $out operation starts
      2. the temporal collection for $out is created
      3. movePrimary starts
      4. movePrimary starts the clone phase
      5. $out operation fails with a MovePrimaryInProgress error
      6. the temporal collection is dropped here
      7. movePrimary finishes the clone phase
      8. movePrimary fails here because cloned collections don't match with the expected collections to clone

            Assignee:
            silvia.surroca@mongodb.com Silvia Surroca
            Reporter:
            silvia.surroca@mongodb.com Silvia Surroca
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: