summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGregory Wlodarek <gregory.wlodarek@mongodb.com>2021-05-31 16:44:00 +0000
committerEvergreen Agent <no-reply@evergreen.mongodb.com>2021-05-31 18:29:51 +0000
commit94c7512afa2ef51609202d68324624356fa06b5d (patch)
treeec4ca933a00f479abc7ce5492d77cf830d62ad7b
parent092b9724b6c11e43a9642bd8f8283a8c1850909c (diff)
downloadmongo-94c7512afa2ef51609202d68324624356fa06b5d.tar.gz
SERVER-57251 Only run salvage_incomplete_rolling_index_builds.js on variants with two-phase index builds enabled
-rw-r--r--jstests/noPassthrough/salvage_incomplete_rolling_index_builds.js6
1 files changed, 6 insertions, 0 deletions
diff --git a/jstests/noPassthrough/salvage_incomplete_rolling_index_builds.js b/jstests/noPassthrough/salvage_incomplete_rolling_index_builds.js
index 8969779a37c..534167af3d1 100644
--- a/jstests/noPassthrough/salvage_incomplete_rolling_index_builds.js
+++ b/jstests/noPassthrough/salvage_incomplete_rolling_index_builds.js
@@ -45,6 +45,12 @@ let primary = replTest.getPrimary();
let primaryDB = primary.getDB(dbName);
let coll = primaryDB.getCollection(collName);
+if (!IndexBuildTest.supportsTwoPhaseIndexBuild(primary)) {
+ jsTestLog('Two phase index builds not supported, skipping test.');
+ replTest.stopSet();
+ return;
+}
+
const numDocs = 100;
insertDocs(coll, 0, numDocs);
assert.eq(numDocs, coll.count(), "unexpected number of documents after bulk insert.");