jstests/replsets/tenant_migration_recipient_current_op.js
// Check currentOp fields' expected value once the recipient is in state "consistent" or later.
Check currentOp fields' expected value once the recipient is in state "consistent" or later.
Check currentOp fields ' expected value once the recipient is in state " consistent " or later .
function checkPostConsistentFieldsOK(res) {
    const currOp = res.inprog[0];
    assert(currOp.hasOwnProperty("startFetchingDonorOpTime") &&
               checkOptime(currOp.startFetchingDonorOpTime),
           res);
    assert(currOp.hasOwnProperty("startApplyingDonorOpTime") &&
               checkOptime(currOp.startApplyingDonorOpTime),
           res);
    assert(currOp.hasOwnProperty("cloneFinishedRecipientOpTime") &&
               checkOptime(currOp.cloneFinishedRecipientOpTime),
           res);
    assert(currOp.hasOwnProperty("dataConsistentStopDonorOpTime") &&
               checkOptime(currOp.dataConsistentStopDonorOpTime),
           res);
    assert(currOp.hasOwnProperty("approxTotalDataSize") &&
               currOp.approxTotalDataSize instanceof NumberLong,
           res);
    assert(currOp.hasOwnProperty("approxTotalBytesCopied") &&
               currOp.approxTotalBytesCopied instanceof NumberLong,
           res);
    assert(currOp.hasOwnProperty("totalReceiveElapsedMillis") &&
               currOp.totalReceiveElapsedMillis instanceof NumberLong,
           res);
    assert(currOp.hasOwnProperty("remainingReceiveEstimatedMillis") &&
               currOp.remainingReceiveEstimatedMillis instanceof NumberLong,
           res);
}
function checkPostConsistentFieldsOK ( res ) { const currOp = res . inprog [ 0 ] ; assert ( currOp . hasOwnProperty ( "startFetchingDonorOpTime" ) && checkOptime ( currOp . startFetchingDonorOpTime ) , res ) ; assert ( currOp . hasOwnProperty ( "startApplyingDonorOpTime" ) && checkOptime ( currOp . startApplyingDonorOpTime ) , res ) ; assert ( currOp . hasOwnProperty ( "cloneFinishedRecipientOpTime" ) && checkOptime ( currOp . cloneFinishedRecipientOpTime ) , res ) ; assert ( currOp . hasOwnProperty ( "dataConsistentStopDonorOpTime" ) && checkOptime ( currOp . dataConsistentStopDonorOpTime ) , res ) ; assert ( currOp . hasOwnProperty ( "approxTotalDataSize" ) && currOp . approxTotalDataSize instanceof NumberLong , res ) ; assert ( currOp . hasOwnProperty ( "approxTotalBytesCopied" ) && currOp . approxTotalBytesCopied instanceof NumberLong , res ) ; assert ( currOp . hasOwnProperty ( "totalReceiveElapsedMillis" ) && currOp . totalReceiveElapsedMillis instanceof NumberLong , res ) ; assert ( currOp . hasOwnProperty ( "remainingReceiveEstimatedMillis" ) && currOp . remainingReceiveEstimatedMillis instanceof NumberLong , res ) ; }
Check currentOp fields' expected value once the recipient is in state "consistent" or later.
Check currentOp fields ' expected value once the recipient is in state " consistent " or later .