This test can be used to verify that the goals of the resumable range deleter project have been met.
- Create a sharded collection with two chunks on Shard A
- Pause range deletion on the primary of Shard A
- Migrate a chunk from Shard A to Shard B
- Cause a step down on Shard A
- Connect directly to the new primary of Shard A and verify that eventually no documents remain from the chunk that was migrated away
Currently this test will fail - we can either commit it by asserting that it currently fails, or make it succeed by introducing a call to cleanupOrphaned between steps 4 and 5. After the project, range deletion should resume automatically on the new shard primary after step 4.