how to notify the main thread when Redisson failed to renew a lock?

56 views Asked by At

In the implementation of the watchdog in Redisson, if the renewal fails, it will just release the lock and do nothing:

That means the main thread doesn't know if it has lost the lock and will continue its relevant process. This may lead to inconsistency or non-idempotent.

How to solve this situation?

0

There are 0 answers