jstests/replsets/tenant_migration_conflicting_donor_start_migration_cmds.js
/**
 * Asserts that the number of recipientDataSync commands executed on the given recipient primary is
 * equal to the given number.
 */
Asserts that the number of recipientDataSync commands executed on the given recipient primary is
equal to the given number.
Asserts that the number of recipientDataSync commands executed on the given recipient primary is equal to the given number .
function checkNumRecipientSyncDataCmdExecuted(recipientPrimary, expectedNumExecuted) {
    const recipientSyncDataMetrics =
        recipientPrimary.adminCommand({serverStatus: 1}).metrics.commands.recipientSyncData;
    assert.eq(0, recipientSyncDataMetrics.failed);
    assert.eq(expectedNumExecuted, recipientSyncDataMetrics.total);
}
function checkNumRecipientSyncDataCmdExecuted ( recipientPrimary , expectedNumExecuted ) { const recipientSyncDataMetrics = recipientPrimary . adminCommand ( { serverStatus : 1 } ) . metrics . commands . recipientSyncData ; assert . eq ( 0 , recipientSyncDataMetrics . failed ) ; assert . eq ( expectedNumExecuted , recipientSyncDataMetrics . total ) ; }
Asserts that the number of recipientDataSync commands executed on the given recipient primary is
 equal to the given number.
Asserts that the number of recipientDataSync commands executed on the given recipient primary is equal to the given number .