You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently, the RedissonClient will renew lock without lease time every lockWatchdogTimeout / 3. If the renewal process fail, the client simply log the issue. Currently, there's no way for applications to know that the renewal failed. Having some kind of callback in such event would allow for application to stop the work they are doing assuming they have lost the lock.
An alternative would be to expose renewExpirationAsync so application could create lock with lease and implement their own renewal mechanism.
A callback for lock lease expiration would also be super useful - particularly in the context of transactional rollback (ie, if a lock lease timeout is because of a recoverable scenario)
My proposal is to add a configurable LockRenewalFailureListener that is notified when a watchdog lock-renewal attempt fails. The callback would report the lock name, thread ID, and error, without claiming that the lock has definitely expired or been lost.
Please let me know if you would prefer a different API or behavior
Activity
johndemic commentedon Jul 16, 2025
A callback for lock lease expiration would also be super useful - particularly in the context of transactional rollback (ie, if a lock lease timeout is because of a recoverable scenario)
guikaua12 commentedon Jul 20, 2026
I'd like to work on this.
My proposal is to add a configurable
LockRenewalFailureListenerthat is notified when a watchdog lock-renewal attempt fails. The callback would report the lock name, thread ID, and error, without claiming that the lock has definitely expired or been lost.Please let me know if you would prefer a different API or behavior