diff options
author | Vojislav Stojkovic <vojislav.stojkovic@mongodb.com> | 2022-08-31 01:35:03 +0000 |
---|---|---|
committer | Evergreen Agent <no-reply@evergreen.mongodb.com> | 2022-08-31 02:03:38 +0000 |
commit | 2171665abd7d04153bb63e248ce1732aa299d968 (patch) | |
tree | e29e03672ef2ba0db6d0f161cdc725f13733395e | |
parent | 8c64e2c4c9a91f863d8911bed6bfe13369242de6 (diff) | |
download | mongo-2171665abd7d04153bb63e248ce1732aa299d968.tar.gz |
SERVER-69189 Drop connections from mongos to primary in connection_establishment_metrics.js
-rw-r--r-- | jstests/noPassthrough/connection_establishment_metrics.js | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/jstests/noPassthrough/connection_establishment_metrics.js b/jstests/noPassthrough/connection_establishment_metrics.js index 5eed9e94259..de4fb9f68b8 100644 --- a/jstests/noPassthrough/connection_establishment_metrics.js +++ b/jstests/noPassthrough/connection_establishment_metrics.js @@ -73,6 +73,8 @@ let connDelayFailPoint = configureFailPoint( st.s, 'transportLayerASIOdelayConnection', {millis: kConnectionEstablishmentDelayMillis}); assert.commandWorked(st.s.adminCommand( {setParameter: 1, slowConnectionThresholdMillis: kConnectionEstablishmentDelayMillis})); +assert.commandWorked( + st.s.adminCommand({dropConnections: 1, hostAndPort: [st.rs0.getPrimary().host]})); jsTestLog("Running the query."); |