cleanupOrphanedWhileMigrating.js retries the split collection command indefinitely if fails

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Fixed
    • Priority: Major - P3
    • 6.1.0-rc0
    • Affects Version/s: None
    • Component/s: None
    • Fully Compatible
    • ALL
    • Sharding EMEA 2022-05-30
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      The local function executeCommandWithRetries is not using the input parameter retries, so it's actually retrying the command forever if the command always returns a failure.

      An alternative solution is to use the assert.soonNoExcept function to retry the command in case of an exception occurs.

            Assignee:
            Silvia Surroca
            Reporter:
            Silvia Surroca
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: