mirror of
https://github.com/mongodb/mongo.git
synced 2024-12-01 09:32:32 +01:00
SERVER-48242 Make stepup in range_deleter_interacts_correctly_with_refine_shard_key.js more robust
This commit is contained in:
parent
0553eb7506
commit
f35cd4090e
@ -207,9 +207,8 @@ function test(st, description, testBody) {
|
||||
const newPrimary = st.rs0.getSecondary();
|
||||
let hangInMigrationRecoveryFailpoint =
|
||||
configureFailPoint(newPrimary, "hangBeforeFilteringMetadataRefresh");
|
||||
assert.commandWorked(newPrimary.adminCommand({replSetStepUp: 1}));
|
||||
st.rs0.stepUp(newPrimary);
|
||||
st.rs0.waitForState(newPrimary, ReplSetTest.State.PRIMARY);
|
||||
st.rs0.awaitNodesAgreeOnPrimary();
|
||||
|
||||
jsTestLog("Waiting for the new primary to hang in migration recovery");
|
||||
hangInMigrationRecoveryFailpoint.wait();
|
||||
|
Loading…
Reference in New Issue
Block a user