2020-07-28 13:49:54 +00:00
|
|
|
/**
|
|
|
|
|
* Multiversion initial sync test. Tests that initial sync succeeds when a 'latest' version
|
|
|
|
|
* secondary syncs from a downgraded version replica set.
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
import {multversionInitialSyncTest} from "jstests/multiVersion/libs/initial_sync.js";
|
|
|
|
|
|
|
|
|
|
let newSecondaryVersion = "latest";
|
|
|
|
|
|
2025-08-28 15:11:44 -04:00
|
|
|
let testName = "multiversion_initial_sync_latest_from_last_lts";
|
2020-07-28 13:49:54 +00:00
|
|
|
jsTestLog("Testing that initial sync succeeds when latest syncs from last-lts");
|
|
|
|
|
multversionInitialSyncTest(testName, "last-lts", newSecondaryVersion, {}, lastLTSFCV);
|
|
|
|
|
|
|
|
|
|
testName = "multiversion_initial_sync_latest_from_last_continuous";
|
|
|
|
|
jsTestLog("Testing that initial sync succeeds when latest syncs from last-continuous");
|
|
|
|
|
multversionInitialSyncTest(testName, "last-continuous", newSecondaryVersion, {}, lastContinuousFCV);
|