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

cleanupOrphanedWhileMigrating.js does not retarget after replica set state change

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

      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@mongodb.com Enrico Golfieri
            Reporter:
            jordi.serra-torrens@mongodb.com Jordi Serra Torrens
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: