summaryrefslogtreecommitdiff
path: root/jstests/noPassthrough/libs
diff options
context:
space:
mode:
authorVarun Ravichandran <varun.ravichandran@mongodb.com>2021-01-08 02:18:10 +0000
committerEvergreen Agent <no-reply@evergreen.mongodb.com>2021-01-20 19:28:03 +0000
commit45a54bbac81ff1146f307afb2d04c94c694a1163 (patch)
tree7aae292c66cab6bedf43d89d6db7f07122788cce /jstests/noPassthrough/libs
parent6308db5c83a3e95f4532c63df8b635b8090036ae (diff)
downloadmongo-45a54bbac81ff1146f307afb2d04c94c694a1163.tar.gz
SERVER-50644, SERVER-50479: Add resumable index build support for ESE by using persistent key for Sorter temp file encryption
Diffstat (limited to 'jstests/noPassthrough/libs')
-rw-r--r--jstests/noPassthrough/libs/index_build.js22
1 files changed, 16 insertions, 6 deletions
diff --git a/jstests/noPassthrough/libs/index_build.js b/jstests/noPassthrough/libs/index_build.js
index 26e08901999..b3ef206858d 100644
--- a/jstests/noPassthrough/libs/index_build.js
+++ b/jstests/noPassthrough/libs/index_build.js
@@ -447,7 +447,8 @@ const ResumableIndexBuildTest = class {
failPointsIteration,
shouldComplete = true,
failPointAfterStartup,
- runBeforeStartup) {
+ runBeforeStartup,
+ options) {
clearRawMongoProgramOutput();
const buildUUIDs = ResumableIndexBuildTest.generateFailPointsData(
@@ -507,8 +508,8 @@ const ResumableIndexBuildTest = class {
["failpoint." + failPointAfterStartup]: tojson({mode: "alwaysOn"}),
});
}
-
- rst.start(conn, {noCleanData: true, setParameter: setParameter});
+ const defaultOptions = {noCleanData: true, setParameter: setParameter};
+ rst.start(conn, Object.assign(defaultOptions, options || {}));
if (shouldComplete) {
// Ensure that the index builds were completed upon the node starting back up.
@@ -629,7 +630,8 @@ const ResumableIndexBuildTest = class {
expectedResumePhases,
resumeChecks,
sideWrites = [],
- postIndexBuildInserts = []) {
+ postIndexBuildInserts = [],
+ restartOptions) {
const primary = rst.getPrimary();
if (!ResumableIndexBuildTest.resumableIndexBuildsEnabled(primary)) {
@@ -646,8 +648,16 @@ const ResumableIndexBuildTest = class {
ResumableIndexBuildTest.createIndexesFails(db, collName, indexSpecs, indexNames);
}, coll, indexSpecs, indexNames, sideWrites, {hangBeforeBuildingIndex: true});
- const buildUUIDs = ResumableIndexBuildTest.restart(
- rst, primary, coll, indexNames, failPoints, failPointsIteration);
+ const buildUUIDs = ResumableIndexBuildTest.restart(rst,
+ primary,
+ coll,
+ indexNames,
+ failPoints,
+ failPointsIteration,
+ true,
+ undefined,
+ undefined,
+ restartOptions);
for (const awaitCreateIndex of awaitCreateIndexes) {
awaitCreateIndex();