Quantcast
Channel: Active questions tagged redis+java - Stack Overflow
Viewing all articles
Browse latest Browse all 2204

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

$
0
0

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?


Viewing all articles
Browse latest Browse all 2204

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>