Skip to content
Discussion options

You must be logged in to vote

Hi again. lets divide this into smaller issues:

Error Lock cannot be ensured after being cancelled

This is better explained in the official documentation. It just says that although Mongock's nature is synchronous, you can still use reactive. However, you must block the sync call in the changeUnits(obviously not need to do so in the rest of your application). You can see an example here

The reason behind this is that the distributed lock is acquired before starting the process, then each changeUnit is applied synchronously(at least that's the expectation) and then the lock is released. Keep in mind that Mongock provides a very robust lock mechanism, so every I/O call you make within a cha…

Replies: 2 comments 7 replies

Comment options

You must be logged in to vote
2 replies
@XSpielinbox
Comment options

@XSpielinbox
Comment options

Comment options

You must be logged in to vote
5 replies
@XSpielinbox
Comment options

@dieppa
Comment options

@XSpielinbox
Comment options

@dieppa
Comment options

@XSpielinbox
Comment options

Answer selected by dieppa
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants