Details
-
Bug
-
Resolution: Fixed
-
Minor - P4
-
None
-
None
-
Fully Compatible
-
Not Needed
-
Description
Looks like in com.mongodb.client.internal.Crypts#createCrypt, and possibly the reactive version of that method, leaks a MongoClient in the case where AutoEncryptionSettings#keyVaultMongoClientSettings is non-null and AutoEncryptionSettings#isBypassAutoEncryption is false. In this case, two MongoClient instances are created (it's not clear why), and only internalClient is closed by com.mongodb.client.internal.Crypt