Replies: 1 comment 1 reply
-
Hello @panphg , now it works as expected. We fixed an issue (#604) where Mongock was creating It seems you want to manage your own transactions, but we are not sure that will work as expected. The idea behind Mongock creating and injecting the If you still want to manage the transaction(meaning that your changes and Mongock's won't be in the same transaction), you need to inject it as a custom dependency on Mongock setup via the |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
If
MongockStandalone
is set up withsetTransactionEnabled(false)
then the ClientSession is not available for injection anymore in 5.2.3 and 5.2.4, i.e. a migration method with a ClientSession argument fails to be executed.The following example works until 5.2.2 and fails from 5.2.3 on:
The exception thrown when using 5.2.3:
Was this an intentional change or is it a regression?
Beta Was this translation helpful? Give feedback.
All reactions