summaryrefslogtreecommitdiff
path: root/jstests/replsets
diff options
context:
space:
mode:
authorLingzhi Deng <lingzhi.deng@mongodb.com>2021-03-16 16:07:05 +0000
committerEvergreen Agent <no-reply@evergreen.mongodb.com>2021-03-16 16:33:32 +0000
commit798a4c5dbf1b17e6219afb728619492162960210 (patch)
treeaa51cf5a2b8acaf011820f4a9b7b8098d110c16a /jstests/replsets
parent63a8db2ed41903b3bae65241cc24861ec791cb6d (diff)
downloadmongo-798a4c5dbf1b17e6219afb728619492162960210.tar.gz
SERVER-55141: Add receiveStart and numOpsApplied to recipient currentOp
Diffstat (limited to 'jstests/replsets')
-rw-r--r--jstests/replsets/tenant_migration_recipient_current_op.js3
1 files changed, 3 insertions, 0 deletions
diff --git a/jstests/replsets/tenant_migration_recipient_current_op.js b/jstests/replsets/tenant_migration_recipient_current_op.js
index 103ac1ec8ca..ca379e2b356 100644
--- a/jstests/replsets/tenant_migration_recipient_current_op.js
+++ b/jstests/replsets/tenant_migration_recipient_current_op.js
@@ -110,6 +110,7 @@ assert.eq(currOp.dataSyncCompleted, false, tojson(res));
assert(!currOp.dataConsistentStopDonorOpTime, tojson(res));
assert(!currOp.cloneFinishedRecipientOpTime, tojson(res));
assert(!currOp.expireAt, tojson(res));
+assert.gt(new Date(), currOp.receiveStart, tojson(res));
// Must exist now.
assert(currOp.startFetchingDonorOpTime, tojson(res));
assert(currOp.startApplyingDonorOpTime, tojson(res));
@@ -152,6 +153,8 @@ assert(currOp.startApplyingDonorOpTime, tojson(res));
assert(currOp.dataConsistentStopDonorOpTime, tojson(res));
assert(currOp.cloneFinishedRecipientOpTime, tojson(res));
assert(!currOp.expireAt, tojson(res));
+// The oplog applier should have applied at least the noop resume token.
+assert.gte(currOp.numOpsApplied, 1, tojson(res));
fpAfterDataConsistent.off();
jsTestLog("Waiting for migration to complete.");