SERVER-111928 Remove wait for suspendRangeDeletion in agg_orphan_filtering_renamed_shardkey.js (#48815)

GitOrigin-RevId: 1b2a44f2dc5b4b6368a1a32de7421b45cfdfcde6
This commit is contained in:
Max Verbinnen 2026-03-09 13:51:49 +00:00 committed by MongoDB Bot
parent 6ce4e14936
commit 2b1ff713b8

View File

@ -86,14 +86,18 @@ for (const query of queries) {
resultsAfterSplitting,
{resultsBeforeSharding, resultsAfterSplitting});
// Enable the fail point to cause range deletion to hang indefinitely.
let suspendRangeDeletionShard0Fp =
configureFailPoint(st.rs0.getPrimary(), "suspendRangeDeletion");
// shard0 will have shardKey=0 doc and the orphaned shardKey=6 doc, and shard1 will have only
// the shardKey=6 document.
assert(st.adminCommand(
{moveChunk: coll.getFullName(), find: {shardKey: 6}, to: st.shard1.shardName}));
suspendRangeDeletionShard0Fp.wait();
assert(st.adminCommand({
moveChunk: coll.getFullName(),
find: {shardKey: 6},
to: st.shard1.shardName,
_waitForDelete: false
}));
const resultsAfterMovingChunk = coll.aggregate(query).toArray();