jstests/sharding/query/lookup_unionWith_subpipeline_local_read.js
// Returns true if the number of log lines on any primary exceeded the internal log buffer size.
Returns true if the number of log lines on any primary exceeded the internal log buffer size.
Returns true if the number of log lines on any primary exceeded the internal log buffer size .
function logLinesExceededBufferSize() {
    for (let i = 0; i < replSets.length; i++) {
        for (let node of [replSets[i].getPrimary(), replSets[i].getSecondary()]) {
            const log = assert.commandWorked(node.adminCommand({getLog: "global"}));
            if (log.totalLinesWritten > 1024) {
                return true;
            }
        }
    }
    return false;
}
function logLinesExceededBufferSize ( ) { for ( let i = 0 ; i < replSets . length ; i ++ ) { for ( let node of [ replSets [ i ] . getPrimary ( ) , replSets [ i ] . getSecondary ( ) ] ) { const log = assert . commandWorked ( node . adminCommand ( { getLog : "global" } ) ) ; if ( log . totalLinesWritten > 1024 ) { return true ; } } } return false ; }
Returns true if the number of log lines on any primary exceeded the internal log buffer size.
Returns true if the number of log lines on any primary exceeded the internal log buffer size .