movePrimary may fail on clone phase if $out runs concurrently

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Fixed
    • Priority: 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
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      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
              Reporter:
              Silvia Surroca
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Created:
                Updated:
                Resolved: