cleanupOrphanedWhileMigrating.js does not retarget after replica set state change

XMLWordPrintableJSON

    • Sharding EMEA
    • Fully Compatible
    • v7.0
    • Sharding EMEA 2023-07-10, Sharding EMEA 2023-07-24
    • 5
    • 2
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      The cleanupOrphanedWhileMigrating.js test takes a connection to the primary node of a random shard and then sends the `cleanupOrphaned` command repeatedly to that node until success. If that node happens to no longer be the primary, the assert.soon loop keeps targetting it. This makes the test unnecessarily slow and may exceed the assert.soon timeout. Instead, it should retarget to the new primary.

            Assignee:
            Enrico Golfieri
            Reporter:
            Jordi Serra Torrens
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: