diff options
author | Jonathan Lee <jonathan.lee@mongodb.com> | 2021-09-09 16:04:29 +0000 |
---|---|---|
committer | Evergreen Agent <no-reply@evergreen.mongodb.com> | 2021-09-09 16:58:34 +0000 |
commit | 856e40338a080691f09986756529935683f86e47 (patch) | |
tree | 158a7016a0501bc58af50f73905537ca507405ef /jstests/noPassthrough/router_transactions_metrics.js | |
parent | edadd9e91e47a5a91feeff3f3bc5dae9c93bc863 (diff) | |
download | mongo-856e40338a080691f09986756529935683f86e47.tar.gz |
SERVER-55345 exclude noShards commit type from duration assertion in router_transaction_metrics.js
Diffstat (limited to 'jstests/noPassthrough/router_transactions_metrics.js')
-rw-r--r-- | jstests/noPassthrough/router_transactions_metrics.js | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/jstests/noPassthrough/router_transactions_metrics.js b/jstests/noPassthrough/router_transactions_metrics.js index 966a74624ce..f74b6d596af 100644 --- a/jstests/noPassthrough/router_transactions_metrics.js +++ b/jstests/noPassthrough/router_transactions_metrics.js @@ -146,6 +146,7 @@ function verifyServerStatusValues(st, expectedStats) { "unexpected totalRequestsTargeted, res: " + tojson(stats)); const commitTypes = res.transactions.commitTypes; + const noShardsCommit = "noShards"; Object.keys(commitTypes).forEach((commitType) => { assert.eq( expectedStats.commitTypes[commitType].initiated, @@ -163,7 +164,7 @@ function verifyServerStatusValues(st, expectedStats) { expectedStats.commitTypes[commitType].successfulDurationMicros = commitTypes[commitType].successfulDurationMicros; - if (commitTypes[commitType].successful != 0) { + if (commitTypes[commitType].successful != 0 && commitType !== noShardsCommit) { assert.gt(commitTypes[commitType].successfulDurationMicros, 0, "unexpected successfulDurationMicros for " + commitType + |