diff options
author | Lingzhi Deng <lingzhi.deng@mongodb.com> | 2021-03-16 16:07:05 +0000 |
---|---|---|
committer | Evergreen Agent <no-reply@evergreen.mongodb.com> | 2021-03-16 16:33:32 +0000 |
commit | 798a4c5dbf1b17e6219afb728619492162960210 (patch) | |
tree | aa51cf5a2b8acaf011820f4a9b7b8098d110c16a /jstests/replsets | |
parent | 63a8db2ed41903b3bae65241cc24861ec791cb6d (diff) | |
download | mongo-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.js | 3 |
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."); |