-
Type: Bug
-
Resolution: Fixed
-
Priority: Minor - P4
-
Affects Version/s: None
-
Component/s: Client Side Encryption
-
None
-
Fully Compatible
-
Not Needed
-
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