jstests/replsets/libs/tenant_migration_util.js
/**
     * Runs the donorForgetMigration command with the given migrationId and returns the response.
     *
     * If 'retryOnRetryableErrors' is set, this function will retry if the command fails with a
     * retryable error.
     *
     * Only use when it is necessary to run the donorForgetMigration command in its own thread. For
     * all other use cases, please consider the forgetMigration() function in the
     * TenantMigrationTest fixture.
     */
Runs the donorForgetMigration command with the given migrationId and returns the response.
If 'retryOnRetryableErrors' is set, this function will retry if the command fails with a
retryable error.

Only use when it is necessary to run the donorForgetMigration command in its own thread. For
all other use cases, please consider the forgetMigration() function in the
TenantMigrationTest fixture.
Runs the donorForgetMigration command with the given migrationId and returns the response . If ' retryOnRetryableErrors ' is set this function will retry if the command fails with a retryable error . Only use when it is necessary to run the donorForgetMigration command in its own thread . For all other use cases please consider the forgetMigration () function in the TenantMigrationTest fixture .
function forgetMigrationAsync(migrationIdString, donorRstArgs, retryOnRetryableErrors = false) {
        load("jstests/replsets/libs/tenant_migration_util.js");
        const donorRst = TenantMigrationUtil.createRst(donorRstArgs, retryOnRetryableErrors);
        const cmdObj = {donorForgetMigration: 1, migrationId: UUID(migrationIdString)};
        return TenantMigrationUtil.runTenantMigrationCommand(
            cmdObj, donorRst, {retryOnRetryableErrors});
    }
function forgetMigrationAsync ( migrationIdString , donorRstArgs , retryOnRetryableErrors = false ) { load ( "jstests/replsets/libs/tenant_migration_util.js" ) ; const donorRst = TenantMigrationUtil . createRst ( donorRstArgs , retryOnRetryableErrors ) ; const cmdObj = { donorForgetMigration : 1 , migrationId : UUID ( migrationIdString ) } ; return TenantMigrationUtil . runTenantMigrationCommand ( cmdObj , donorRst , { retryOnRetryableErrors } ) ; }
Runs the donorForgetMigration command with the given migrationId and returns the response.
Runs the donorForgetMigration command with the given migrationId and returns the response .