SERVER-112617 Set failpoint before starting chunk migration in safe_secondary_reads_causal_consistency.js (#42884)

GitOrigin-RevId: 6fe6cef1a906e7f0db9d9a64cdd16f378d75b26e
This commit is contained in:
Janna Golden 2025-10-22 13:45:43 -04:00 committed by MongoDB Bot
parent 1ab4afc630
commit 1d742cdba3
3 changed files with 5 additions and 1 deletions

1
.github/CODEOWNERS vendored
View File

@ -1556,6 +1556,7 @@ WORKSPACE.bazel @10gen/devprod-build @svc-auto-approve-bot
/jstests/sharding/**/safe_secondary_reads_single_migration_waitForDelete.js @10gen/server-catalog-and-routing @svc-auto-approve-bot
/jstests/sharding/**/startup_with_all_configs_down.js @10gen/server-catalog-and-routing-routing-and-topology @svc-auto-approve-bot
/jstests/sharding/**/addshard*.js @10gen/server-catalog-and-routing-routing-and-topology @svc-auto-approve-bot
/jstests/sharding/**/safe_secondary_reads_causal_consistency.js @10gen/server-cluster-scalability @svc-auto-approve-bot
# The following patterns are parsed from ./jstests/sharding/analyze_shard_key/OWNERS.yml
/jstests/sharding/analyze_shard_key/**/* @10gen/server-cluster-scalability @svc-auto-approve-bot

View File

@ -130,3 +130,6 @@ filters:
- "addshard*.js":
approvers:
- 10gen/server-catalog-and-routing-routing-and-topology
- "safe_secondary_reads_causal_consistency.js":
approvers:
- 10gen/server-cluster-scalability

View File

@ -100,6 +100,7 @@ setupShardedCollection(st, dbName2, ns2, st.shard1.shardName);
// shard1. Then it pauses the migration right before it enters the commit phase.
jsTest.log("Starting migration.");
pauseMoveChunkAtStep(st.shard0, moveChunkStepNames.chunkDataCommitted);
const staticMongod = MongoRunner.runMongod({});
const joinMoveChunk = moveChunkParallel(
@ -111,7 +112,6 @@ const joinMoveChunk = moveChunkParallel(
st.shard1.shardName,
true /** expectSuccess */,
);
pauseMoveChunkAtStep(st.shard0, moveChunkStepNames.chunkDataCommitted);
waitForMoveChunkStep(st.shard0, moveChunkStepNames.chunkDataCommitted);
// Sends a versioned read through mongos1, the second router, to cause a refresh on the secondary of