summaryrefslogtreecommitdiff
path: root/jstests/noPassthroughWithMongod
diff options
context:
space:
mode:
authorBenety Goh <benety@mongodb.com>2019-11-22 18:46:41 +0000
committerevergreen <evergreen@mongodb.com>2019-11-22 18:46:41 +0000
commitdfe9a2f8776a0d5cae7eb2e894fc3fefc7ff2c9a (patch)
treed90cf11e1ee17109e7801f32c81e955b26500e79 /jstests/noPassthroughWithMongod
parentacb2b88d9e1d46849ec051a6adb5ea7a9a4f58f8 (diff)
downloadmongo-dfe9a2f8776a0d5cae7eb2e894fc3fefc7ff2c9a.tar.gz
SERVER-44785 replace two_phase_index_builds_unsupported tag with active check
Diffstat (limited to 'jstests/noPassthroughWithMongod')
-rw-r--r--jstests/noPassthroughWithMongod/indexbg_restart_secondary_noretry.js11
1 files changed, 10 insertions, 1 deletions
diff --git a/jstests/noPassthroughWithMongod/indexbg_restart_secondary_noretry.js b/jstests/noPassthroughWithMongod/indexbg_restart_secondary_noretry.js
index 9de2404e836..6742ed871cc 100644
--- a/jstests/noPassthroughWithMongod/indexbg_restart_secondary_noretry.js
+++ b/jstests/noPassthroughWithMongod/indexbg_restart_secondary_noretry.js
@@ -7,12 +7,13 @@
* requires_persistence,
* requires_journaling,
* requires_replication,
- * two_phase_index_builds_unsupported,
* ]
*/
(function() {
'use strict';
+load('jstests/noPassthrough/libs/index_build.js');
+
// Assert that running `mongod` with `--noIndexBuildRetry` and `--replSet` does not startup.
{
// If code breaks the incompatibility between `--noIndexBuildRetry` and `--replSet`, using
@@ -49,6 +50,14 @@ replTest.initiate({
var master = replTest.getPrimary();
var second = replTest.getSecondary();
+// This test requires index builds to start on the createIndexes oplog entry and expects
+// index builds to be interrupted when the primary steps down.
+if (IndexBuildTest.supportsTwoPhaseIndexBuild(master)) {
+ jsTestLog('Two phase index builds not supported, skipping test.');
+ replTest.stopSet();
+ return;
+}
+
var masterDB = master.getDB('bgIndexNoRetrySec');
var secondDB = second.getDB('bgIndexNoRetrySec');