jstests/replsets/libs/initial_sync_test.js
/**
     * Restarts the secondary with the first synchronization failpoint enabled so that we ensure
     * that initial sync pauses the first time the node reaches out to the sync source.
     */
Restarts the secondary with the first synchronization failpoint enabled so that we ensure
that initial sync pauses the first time the node reaches out to the sync source.
Restarts the secondary with the first synchronization failpoint enabled so that we ensure that initial sync pauses the first time the node reaches out to the sync source .
function restartNodeWithoutData() {
        replSet.stop(secondary, undefined, {skipValidation: true});
        const nodeOptions = {
            startClean: true,
            setParameter: {
                'failpoint.initialSyncFuzzerSynchronizationPoint1': tojson({mode: 'alwaysOn'}),
                'replBatchLimitBytes': replBatchLimitBytes,
            },
        };
        if (TestData.logComponentVerbosity) {
            nodeOptions.setParameter.logComponentVerbosity =
                tojsononeline(TestData.logComponentVerbosity);
        }
        secondary = replSet.start(secondary, nodeOptions, true);
    }
function restartNodeWithoutData ( ) { replSet . stop ( secondary , undefined , { skipValidation : true } ) ; const nodeOptions = { startClean : true , setParameter : { 'failpoint.initialSyncFuzzerSynchronizationPoint1' : tojson ( { mode : 'alwaysOn' } ) , 'replBatchLimitBytes' : replBatchLimitBytes , } , } ; if ( TestData . logComponentVerbosity ) { nodeOptions . setParameter . logComponentVerbosity = tojsononeline ( TestData . logComponentVerbosity ) ; } secondary = replSet . start ( secondary , nodeOptions , true ) ; }
Restarts the secondary with the first synchronization failpoint enabled so that we ensure
 that initial sync pauses the first time the node reaches out to the sync source.
Restarts the secondary with the first synchronization failpoint enabled so that we ensure that initial sync pauses the first time the node reaches out to the sync source .
// Skip validation when stopping the node in case there are transactions in prepare. // Restart the node with the first synchronization failpoint enabled so that initial sync // doesn't finish before we can pause it.