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

cleanupOrphanedWhileMigrating.js should not run on stepdown suites

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 7.2.0-rc0, 7.0.4
    • Affects Version/s: 7.0.1, 7.2.0-rc0
    • Component/s: None
    • None
    • Sharding EMEA
    • Fully Compatible
    • ALL
    • v7.0
    • Sharding EMEA 2023-10-16, Sharding EMEA 2023-10-30
    • 5

      cleanupOrphanedWhileMigrating.js performs a cleanupOrphans that in case of stepdown on a slow machine might delay to point to cause the assert soon to trigger.

      A real example of a broken interleaving coming from BF-29780 that causing the test to fail 

      • A cleanupOrphans runs on a primary
      • the primary becomes secondary
      • cleanupOrphans fails after 5
      • The operation retried due to assert.soonNoExcept
      • A cleanupOrphans runs on a primary
      • the primary becomes secondary
      • cleanupOrphans fails after 8s
      • assert.soon triggers timeout

      Increasing the timeout could mitigate but not fix the issue: In assert.soonNoExcept we re-run the command until success or until we hit the timeout. The test could keep failing if  step-down keeps occurring at every attempt

            Assignee:
            enrico.golfieri@mongodb.com Enrico Golfieri
            Reporter:
            enrico.golfieri@mongodb.com Enrico Golfieri
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: