mirror of
https://github.com/mongodb/mongo.git
synced 2024-12-01 09:32:32 +01:00
21 lines
690 B
JavaScript
21 lines
690 B
JavaScript
/**
|
|
* Tests different permutations of rolling-back index build start, commit, and drop oplog entries.
|
|
*/
|
|
(function() {
|
|
"use strict";
|
|
|
|
// for RollbackIndexBuildTest
|
|
load('jstests/replsets/libs/rollback_index_builds_test.js');
|
|
|
|
const rollbackIndexTest = new RollbackIndexBuildsTest();
|
|
|
|
// Build a schedule of operations interleaving rollback and an index build.
|
|
const rollbackOps = ["holdStableTimestamp", "transitionToRollback"];
|
|
const indexBuildOps = ["start", "commit", "drop"];
|
|
|
|
// This generates 5 choose 3, or 10 schedules.
|
|
const schedules = RollbackIndexBuildsTest.makeSchedules(rollbackOps, indexBuildOps);
|
|
rollbackIndexTest.runSchedules(schedules);
|
|
rollbackIndexTest.stop();
|
|
})();
|