SERVER-59495 Donor and recipient tenant migration state machines will persist the migration protocol info and tenantId info will be an empty string for 'Merge' protocol."

This commit is contained in:
Suganthi Mani
2021-11-09 13:21:10 -05:00
committed by Evergreen Agent
parent 91ea2a5da0
commit 7f89e2f0ed
22 changed files with 484 additions and 66 deletions

View File

@@ -52,6 +52,9 @@ function runTest(downgradeFCV) {
migrationThread.start();
hangAfterSavingFCV.wait();
const isRunningMergeProtocol =
(TenantMigrationUtil.isShardMergeEnabled(recipientDb)) ? true : false;
// Downgrade the FCV for the recipient set.
assert.commandWorked(
recipientPrimary.adminCommand({setFeatureCompatibilityVersion: downgradeFCV}));
@@ -66,7 +69,12 @@ function runTest(downgradeFCV) {
// The migration will not be able to continue in the downgraded version.
TenantMigrationTest.assertAborted(migrationThread.returnData());
checkLog.containsJson(newRecipientPrimary, 5356200); // Change-of-FCV detection message.
// Change-of-FCV detection message.
if (isRunningMergeProtocol) {
checkLog.containsJson(newRecipientPrimary, 5949504);
} else {
checkLog.containsJson(newRecipientPrimary, 5356200);
}
tenantMigrationTest.stop();
recipientRst.stopSet();