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
What is the expected behavior? mongoose.connection.transaction() should call session.endSession() so the session is cleaned up.
What are the versions of Node.js, Mongoose and MongoDB you are using? Note that "latest" is not a version.
node v16.13.2
mongoose v6.1.7
mongodb server v5.0.5 driver v4.3.0
The text was updated successfully, but these errors were encountered:
Do you want to request a feature or report a bug?
Bug
What is the current behavior?
MongoDB sessions created by using
mongoose.connection.transaction()
aren't cleaned up, resulting in the memory leaking:If the current behavior is a bug, please provide the steps to reproduce.
What is the expected behavior?
mongoose.connection.transaction()
should callsession.endSession()
so the session is cleaned up.What are the versions of Node.js, Mongoose and MongoDB you are using? Note that "latest" is not a version.
node v16.13.2
mongoose v6.1.7
mongodb server v5.0.5 driver v4.3.0
The text was updated successfully, but these errors were encountered: