jstests/replsets/libs/initial_sync_test.js
/**
     * Flip failpoints and wait until the second synchronization failpoint is hit so that we know
     * it is safe to let initial sync resume again. This step is necessary before issuing the next
     * command to ensure that we only run one command before pausing at the first synchronization
     * failpoint again.
     */
Flip failpoints and wait until the second synchronization failpoint is hit so that we know
it is safe to let initial sync resume again. This step is necessary before issuing the next
command to ensure that we only run one command before pausing at the first synchronization
failpoint again.
Flip failpoints and wait until the second synchronization failpoint is hit so that we know it is safe to let initial sync resume again . This step is necessary before issuing the next command to ensure that we only run one command before pausing at the first synchronization failpoint again .
function pauseBeforeSyncSourceCommand() {
        assert.commandWorked(secondary.adminCommand(
            {"configureFailPoint": 'initialSyncFuzzerSynchronizationPoint2', "mode": 'alwaysOn'}));
        assert.commandWorked(secondary.adminCommand(
            {"configureFailPoint": 'initialSyncFuzzerSynchronizationPoint1', "mode": 'off'}));
        checkLog.contains(secondary, "initialSyncFuzzerSynchronizationPoint2 fail point enabled");
    }
function pauseBeforeSyncSourceCommand ( ) { assert . commandWorked ( secondary . adminCommand ( { "configureFailPoint" : 'initialSyncFuzzerSynchronizationPoint2' , "mode" : 'alwaysOn' } ) ) ; assert . commandWorked ( secondary . adminCommand ( { "configureFailPoint" : 'initialSyncFuzzerSynchronizationPoint1' , "mode" : 'off' } ) ) ; checkLog . contains ( secondary , "initialSyncFuzzerSynchronizationPoint2 fail point enabled" ) ; }
Flip failpoints and wait until the second synchronization failpoint is hit so that we know
 it is safe to let initial sync resume again.
Flip failpoints and wait until the second synchronization failpoint is hit so that we know it is safe to let initial sync resume again .