blob: 52296b9fffde5fa30427167fc090a2a7c824e692 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
/**
* Tests that an index build is resumable only once across rollbacks. If the resumed index build
* fails to run to completion before a subsequent rollback, it will restart from the beginning.
*
* @tags: [
* requires_majority_read_concern,
* requires_persistence,
* ]
*/
(function() {
"use strict";
load("jstests/replsets/libs/rollback_resumable_index_build.js");
const dbName = "test";
const rollbackTest = new RollbackTest(jsTestName());
RollbackResumableIndexBuildTest.runResumeInterruptedByRollback(
rollbackTest, dbName, [{a: 1}, {a: 2}], {a: 1}, [{a: 3}], [{a: 4}]);
rollbackTest.stop();
})();
|