diff options
author | Randolph Tan <randolph@10gen.com> | 2022-06-09 14:21:48 +0000 |
---|---|---|
committer | Evergreen Agent <no-reply@evergreen.mongodb.com> | 2022-06-09 15:21:39 +0000 |
commit | d15e05568e1edab872a55f184ded091a48b8b21e (patch) | |
tree | 293b12f245f81cacd3cb52235faaf78b4c6ae2db /jstests | |
parent | 4152176f15fb90f8ae5253f9921d2002bd2204d5 (diff) | |
download | mongo-d15e05568e1edab872a55f184ded091a48b8b21e.tar.gz |
SERVER-66818 Use original field names in server status resharding section
Diffstat (limited to 'jstests')
-rw-r--r-- | jstests/sharding/resharding_metrics.js | 2 | ||||
-rw-r--r-- | jstests/sharding/resharding_metrics_increment.js | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/jstests/sharding/resharding_metrics.js b/jstests/sharding/resharding_metrics.js index 2378240d2b9..0a920fb91e2 100644 --- a/jstests/sharding/resharding_metrics.js +++ b/jstests/sharding/resharding_metrics.js @@ -108,7 +108,7 @@ allNodes.forEach((hostName) => { assert(serverStatus.hasOwnProperty('countFailed'), debugStr()); assert(serverStatus.hasOwnProperty('active'), debugStr()); - assert(serverStatus.active.hasOwnProperty('documentsProcessed'), debugStr()); + assert(serverStatus.active.hasOwnProperty('documentsCopied'), debugStr()); assert(serverStatus.hasOwnProperty('oldestActive'), debugStr()); assert( diff --git a/jstests/sharding/resharding_metrics_increment.js b/jstests/sharding/resharding_metrics_increment.js index 05feacbdadd..a8b188f64e9 100644 --- a/jstests/sharding/resharding_metrics_increment.js +++ b/jstests/sharding/resharding_metrics_increment.js @@ -125,7 +125,7 @@ const topology = DiscoverTopology.findConnectedNodes(mongos); jsTest.log(`Resharding stats for ${mongo}: ${tojson(sub)}`); verifyDict(sub.active, { - "documentsProcessed": e.documents, + "documentsCopied": e.documents, "oplogEntriesFetched": e.fetched, "oplogEntriesApplied": e.applied, "insertsApplied": e.opcounters.insert, @@ -134,7 +134,7 @@ const topology = DiscoverTopology.findConnectedNodes(mongos); }); // bytesCopied is harder to pin down but it should be >0. - assert.betweenIn(1, sub.active['bytesWritten'], 1024, 'bytesWritten'); + assert.betweenIn(1, sub.active['bytesCopied'], 1024, 'bytesCopied'); }); reshardingTest.teardown(); |