summaryrefslogtreecommitdiff
path: root/jstests/sharding
diff options
context:
space:
mode:
authorAndrew Shuvalov <andrew.shuvalov@mongodb.com>2022-04-15 23:04:11 +0000
committerEvergreen Agent <no-reply@evergreen.mongodb.com>2022-04-15 23:41:56 +0000
commit7725a1e2d179947e8e00b9cba2d82ddfc1960f9a (patch)
tree9c8a5d7e8edc57ca3639bde4c2385f732ec4df9e /jstests/sharding
parent4001c6ac5a464651174710e3cb38f269b27460ee (diff)
downloadmongo-7725a1e2d179947e8e00b9cba2d82ddfc1960f9a.tar.gz
SERVER-65712 refresh the list of test PIDs to unregister crashed mongos
Diffstat (limited to 'jstests/sharding')
-rw-r--r--jstests/sharding/health_monitor/config_server_health_observer_crash.js3
1 files changed, 3 insertions, 0 deletions
diff --git a/jstests/sharding/health_monitor/config_server_health_observer_crash.js b/jstests/sharding/health_monitor/config_server_health_observer_crash.js
index 22c9c247a5e..be4f05c68cd 100644
--- a/jstests/sharding/health_monitor/config_server_health_observer_crash.js
+++ b/jstests/sharding/health_monitor/config_server_health_observer_crash.js
@@ -116,6 +116,9 @@ assert.soon(() => {
}, 'Mongos is not shutting down as expected', 40000, 400);
try {
+ // Refresh PIDs to force de-registration of the crashed mongos.
+ var pids = _runningMongoChildProcessIds();
+ jsTestLog(`Running processes: ${tojson(pids)}`);
st.stop({skipValidatingExitCode: true, skipValidation: true});
} catch (e) {
jsTestLog(`Exception during shutdown: ${e}`);