jstests/replsets/dbcheck.js
// dbCheck takes longer than maxMs.
dbCheck takes longer than maxMs.
dbCheck takes longer than maxMs .
function awaitDbCheckCompletion(db, collName, maxKey, maxSize, maxCount) {
    let start = Date.now();
    assert.soon(() => dbCheckCompleted(db), "dbCheck timed out");
    replSet.awaitSecondaryNodes();
    replSet.awaitReplication();
    forEachNode(function(node) {
        const healthlog = node.getDB('local').system.healthlog;
        assert.soon(function() {
            return (healthlog.find({"operation": "dbCheckStop"}).itcount() == 1);
        }, "dbCheck command didn't complete");
    });
}
function awaitDbCheckCompletion ( db , collName , maxKey , maxSize , maxCount ) { let start = Date . now ( ) ; assert . soon ( ( ) => dbCheckCompleted ( db ) , "dbCheck timed out" ) ; replSet . awaitSecondaryNodes ( ) ; replSet . awaitReplication ( ) ; forEachNode ( function ( node ) { const healthlog = node . getDB ( 'local' ) . system . healthlog ; assert . soon ( function ( ) { return ( healthlog . find ( { "operation" : "dbCheckStop" } ) . itcount ( ) == 1 ) ; } , "dbCheck command didn't complete" ) ; } ) ; }
dbCheck takes longer than maxMs.
dbCheck takes longer than maxMs .