summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Shuvalov <andrew.shuvalov@mongodb.com>2021-12-28 18:52:08 +0000
committerEvergreen Agent <no-reply@evergreen.mongodb.com>2021-12-28 23:18:25 +0000
commita8488a269e26e6094e560b2beb991674e04de557 (patch)
treea3aa2e8b4cd4878d0b6f9814c9636af087394108
parent0ef305e13462e53f4c1c6e63cca16204826e55d2 (diff)
downloadmongo-a8488a269e26e6094e560b2beb991674e04de557.tar.gz
SERVER-62284 disable incompatible test
-rw-r--r--jstests/sharding/health_monitor/non_critical_facet.js42
1 files changed, 22 insertions, 20 deletions
diff --git a/jstests/sharding/health_monitor/non_critical_facet.js b/jstests/sharding/health_monitor/non_critical_facet.js
index 073cba2afa1..af84d6e297f 100644
--- a/jstests/sharding/health_monitor/non_critical_facet.js
+++ b/jstests/sharding/health_monitor/non_critical_facet.js
@@ -7,7 +7,8 @@ const ACTIVE_FAULT_DURATION_SECS = 1;
const params = {
setParameter: {
- healthMonitoring: tojson({test: "non-critical", ldap: "off", dns: "off"}),
+ // TODO(SERVER-62284): restore this when the param is available.
+ // healthMonitoring: tojson({test: "non-critical", ldap: "off", dns: "off"}),
featureFlagHealthMonitoring: true
}
};
@@ -23,26 +24,27 @@ assert.commandWorked(
let result = assert.commandWorked(st.s0.adminCommand({serverStatus: 1})).health;
assert.eq(result.state, "Ok");
+// TODO(SERVER-62284): restore this when the param is available.
// Failpoint returns fault.
-assert.commandWorked(st.s0.adminCommand({
- "configureFailPoint": 'testHealthObserver',
- "data": {"code": "InternalError", "msg": "test msg"},
- "mode": "alwaysOn"
-}));
-
-assert.soon(() => {
- result = assert.commandWorked(st.s0.adminCommand({serverStatus: 1})).health;
- return result.state == "TransientFault";
-});
-
-// Sleep for twice as long as active fault duration (in Millis).
-sleep(ACTIVE_FAULT_DURATION_SECS * 2000);
-
-// Still in transient fault.
-result = assert.commandWorked(st.s0.adminCommand({serverStatus: 1})).health;
-assert.eq(result.state, "TransientFault");
-assert(
- result.faultInformation.facets.kTestObserver.description.includes("InternalError: test msg"));
+// assert.commandWorked(st.s0.adminCommand({
+// "configureFailPoint": 'testHealthObserver',
+// "data": {"code": "InternalError", "msg": "test msg"},
+// "mode": "alwaysOn"
+// }));
+
+// assert.soon(() => {
+// result = assert.commandWorked(st.s0.adminCommand({serverStatus: 1})).health;
+// return result.state == "TransientFault";
+// });
+
+// // Sleep for twice as long as active fault duration (in Millis).
+// sleep(ACTIVE_FAULT_DURATION_SECS * 2000);
+
+// // Still in transient fault.
+// result = assert.commandWorked(st.s0.adminCommand({serverStatus: 1})).health;
+// assert.eq(result.state, "TransientFault");
+// assert(
+// result.faultInformation.facets.kTestObserver.description.includes("InternalError: test msg"));
st.stop();
})();