-
Type: Bug
-
Resolution: Fixed
-
Priority: Major - P3
-
Affects Version/s: None
-
Component/s: None
-
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.