diff options
| author | Malik Endsley <malik.endsley@mongodb.com> | 2024-08-12 14:04:15 -0400 |
|---|---|---|
| committer | MongoDB Bot <mongo-bot@mongodb.com> | 2024-08-12 18:57:09 +0000 |
| commit | 86ec2d74ac689ad6150e5447d8d1b3031f90c2f8 (patch) | |
| tree | 32085d15e7009e808adc600a9fb8937b7cbdcd0e | |
| parent | 8ded7442ff08886ea17b175b2db57bac189b3d08 (diff) | |
SERVER-92108: Make index_build_killop_secondary_after_commit wait for… (#26019)r8.0.0-rc17
GitOrigin-RevId: d048540c013d1c3153b5e3b52f9cfc6ed4dea69d
| -rw-r--r-- | jstests/noPassthrough/index_build_killop_secondary_after_commit.js | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/jstests/noPassthrough/index_build_killop_secondary_after_commit.js b/jstests/noPassthrough/index_build_killop_secondary_after_commit.js index 1edcbe2a5a4..33f77b9821c 100644 --- a/jstests/noPassthrough/index_build_killop_secondary_after_commit.js +++ b/jstests/noPassthrough/index_build_killop_secondary_after_commit.js @@ -87,9 +87,6 @@ rst.start(secondary.nodeId, undefined, true /* restart */); secondary = rst.getSecondary(); secondaryDB = secondary.getDB(testDB.getName()); -// Wait for the restarted secondary node to reach SECONDARY state again. -rst.waitForState(secondary, ReplSetTest.State.SECONDARY); - // Wait for the index build to complete on all nodes. rst.awaitReplication(); @@ -99,6 +96,9 @@ createIdx(); IndexBuildTest.assertIndexes(coll, 2, ['_id_', 'a_1']); +// Wait for the secondary node to complete its recovery. +rst.awaitSecondaryNodes(); + // Check that index was created on the secondary despite the attempted killOp(). const secondaryColl = secondaryDB.getCollection(coll.getName()); IndexBuildTest.assertIndexes(secondaryColl, 2, ['_id_', 'a_1']); |
