diff options
| author | Alex Li <alex.li@mongodb.com> | 2022-09-20 13:19:10 +0000 |
|---|---|---|
| committer | Evergreen Agent <no-reply@evergreen.mongodb.com> | 2022-09-20 14:18:34 +0000 |
| commit | 3f539516147f148ebc3992d6bb6484a44e551096 (patch) | |
| tree | c69cc3d408a67f732ca0ff204690c8f7c361ea74 | |
| parent | 152ae38f2295f8f7996430ca119c8b861d55c303 (diff) | |
| download | mongo-3f539516147f148ebc3992d6bb6484a44e551096.tar.gz | |
SERVER-68561 Re-enable listener_processing_server_status_metrics.js and jstests/sharding/max_time_ms_connection_pool.js
| -rw-r--r-- | jstests/sharding/listener_processing_server_status_metrics.js | 14 | ||||
| -rw-r--r-- | jstests/sharding/max_time_ms_connection_pool.js | 2 |
2 files changed, 12 insertions, 4 deletions
diff --git a/jstests/sharding/listener_processing_server_status_metrics.js b/jstests/sharding/listener_processing_server_status_metrics.js index b140d5472d3..5ad18fcdd82 100644 --- a/jstests/sharding/listener_processing_server_status_metrics.js +++ b/jstests/sharding/listener_processing_server_status_metrics.js @@ -1,5 +1,5 @@ /** - * @tags: [requires_fcv_60, featureFlagConnHealthMetrics, __TEMPORARILY_DISABLED__] + * @tags: [requires_fcv_61, featureFlagConnHealthMetrics] * * Tests that listener processing times for connections are properly reported in server status * metrics. With each new connection to the same host, the value of the metric should be @@ -9,10 +9,18 @@ (function() { "use strict"; +load("jstests/libs/feature_flag_util.js"); + const numConnections = 10; const st = new ShardingTest({shards: 1, mongos: 1}); const admin = st.s.getDB("admin"); +if (!FeatureFlagUtil.isEnabled(st.s.getDB("test"), "ConnHealthMetrics")) { + jsTestLog('Skipping test because the connection health metrics feature flag is disabled.'); + st.stop(); + return; +} + let previous = 0; for (var i = 0; i < numConnections; i++) { const conn = new Mongo(admin.getMongo().host); @@ -22,8 +30,8 @@ for (var i = 0; i < numConnections; i++) { previous = t; } -// While there is an off-chance that the timer doesn't increment for a connection, this is rare and -// the metric should have increased for most if not all connections. +// While there is an off-chance that the timer doesn't increment for a connection, this is rare +// and the metric should have increased for most if not all connections. assert.gt(previous, 0); st.stop(); diff --git a/jstests/sharding/max_time_ms_connection_pool.js b/jstests/sharding/max_time_ms_connection_pool.js index 8fd1d345c40..f4b5422c760 100644 --- a/jstests/sharding/max_time_ms_connection_pool.js +++ b/jstests/sharding/max_time_ms_connection_pool.js @@ -4,7 +4,7 @@ * `executor/connection_pool.cpp` into MaxTimeMSError when MaxTimeMS option is set for a given * sharding command. * - * @tags: [requires_fcv_60, __TEMPORARILY_DISABLED__] + * @tags: [requires_fcv_61] */ (function() { |
