You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
MongoDbHealthCheck is maintaining it's private static cache of instances. It's wrong, as it can cause a memory leak (it won't ever be freed).
Moreover, it's can create instances of MongoClient. This is wrong, as it can lead into a situation when we have multiple instances of MongoClient that are connected to the same DB: one used by the app and another created and used by the health check. And we should have only one.
MongoDbHealthCheck
is maintaining it's private static cache of instances. It's wrong, as it can cause a memory leak (it won't ever be freed).Moreover, it's can create instances of
MongoClient
. This is wrong, as it can lead into a situation when we have multiple instances ofMongoClient
that are connected to the same DB: one used by the app and another created and used by the health check. And we should have only one.We should do the same as in #2040, #2116 and #2096
The text was updated successfully, but these errors were encountered: