Files
mongo/jstests/replsets/rollback_index_build_start_commit.js
Stephanie 62b275cd55 SERVER-109631 Disable commit quorum for primary-driven index builds (#40440)
GitOrigin-RevId: 0775d0213b61306d1239330d24b9ac65221d630d
2025-08-28 18:47:13 +00:00

20 lines
778 B
JavaScript

/**
* Tests different permutations of rolling-back index build start and commit oplog entries.
* @tags: [
* # We don't need to handle rollbacks in primary-driven index builds.
* primary_driven_index_builds_incompatible,
* ]
*/
import {RollbackIndexBuildsTest} from "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"];
// This generates 4 choose 2, or 6 schedules.
const schedules = RollbackIndexBuildsTest.makeSchedules(rollbackOps, indexBuildOps);
rollbackIndexTest.runSchedules(schedules);
rollbackIndexTest.stop();