summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBenety Goh <benety@mongodb.com>2021-12-06 16:31:12 +0000
committerEvergreen Agent <no-reply@evergreen.mongodb.com>2021-12-06 17:01:51 +0000
commit7d00ce21af91b582235da7586ff50537a99b3839 (patch)
treefc3c82f9b02ac2f902b9994a0f0b7e969587b1f2
parent1505f67f70b884ae6ddb1f31d7eb752ec0fc993c (diff)
downloadmongo-7d00ce21af91b582235da7586ff50537a99b3839.tar.gz
SERVER-61917 rollback fixture waits for index build to scan collection
-rw-r--r--jstests/replsets/libs/rollback_index_builds_test.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/jstests/replsets/libs/rollback_index_builds_test.js b/jstests/replsets/libs/rollback_index_builds_test.js
index ca6b5e69693..a05c039cad8 100644
--- a/jstests/replsets/libs/rollback_index_builds_test.js
+++ b/jstests/replsets/libs/rollback_index_builds_test.js
@@ -118,7 +118,8 @@ class RollbackIndexBuildsTest {
indexBuilds.push(IndexBuildTest.startIndexBuild(
primary, collection.getFullName(), indexSpec, {}, errcodes, 0));
- IndexBuildTest.waitForIndexBuildToStart(primaryDB, collName, "a_1");
+ IndexBuildTest.waitForIndexBuildToScanCollection(
+ primaryDB, collName, "a_1");
break;
case "commit":
IndexBuildTest.resumeIndexBuilds(primary);