Adding a session to an existing doc sometimes crashes population #15210
Labels
new feature
This change adds new functionality, like a new method or class
Milestone
Prerequisites
Mongoose version
8.9.5
Node.js version
22.13.0
MongoDB server version
8.0.1
Typescript version (if applicable)
No response
Description
When finding a doc without using a session, then adding the session to the doc (with .$session) and then calling populate, a TransientTransactionError sometimes occurs (30% of the time on my machine).
Steps to Reproduce
Expected Behavior
The script should always log this
The text was updated successfully, but these errors were encountered: