-
Type: Task
-
Resolution: Done
-
Priority: Unknown
-
None
-
Affects Version/s: None
-
Component/s: None
NODE-4039 Description
What problem are you facing?
My process is not shutting down even though I have called `client.close()` on the mongo client.
What driver and relevant dependency versions are you using?
mongodb: ^4.0.1
Steps to reproduce?
import why from 'why-is-node-running' import { MongoClient, Collection, MongoClientOptions } from 'mongodb' const client = await new MongoClient(mongoConnectionString, options).connect() await client.close() why()
Here is the information reported from `why-is-node-still-running`
# PBKDF2REQUEST node:internal/async_hooks:201 node:internal/crypto/pbkdf2:72 /var/app/recovery-unified-api/node_modules/mongodb/lib/cmap/auth/scram.js:234 - const saltedData = crypto.pbkdf2Sync(data, salt, iterations, hiLengthMap[cryptoMethod], cryptoMethod); /var/app/recovery-unified-api/node_modules/mongodb/lib/cmap/auth/scram.js:138 - const saltedPassword = HI(processedPassword, Buffer.from(salt, 'base64'), iterations, cryptoMethod); /var/app/recovery-unified-api/node_modules/mongodb/lib/cmap/auth/scram.js:42 - continueScramConversation(this.cryptoMethod, response.speculativeAuthenticate, authContext, callback); /var/app/recovery-unified-api/node_modules/mongodb/lib/cmap/connect.js:128 - provider.auth(authContext, err => { /var/app/recovery-unified-api/node_modules/mongodb/lib/cmap/connection.js:474 - callback(undefined, operationDescription.fullResult ? message : message.documents[0]); /var/app/recovery-unified-api/node_modules/mongodb/lib/cmap/message_stream.js:108 - stream.emit('message', new ResponseType(message, messageHeader, messageBody));