-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support Lock TTL configuration using DefaultRedisCacheWriter
#2300
Comments
The issue is caused by the lock entry not being cleaned up. In this case, the cleanup failed because the connection became unusable. There are a couple of ways out here:
While we could retry the cleanup in case the connection is disconnected, the cleanup could still fail in case the Redis server went down. I think that we should extend our |
DefaultRedisCacheWriter
can lead to infinite lock if lock entry is not cleaned up
DefaultRedisCacheWriter
can lead to infinite lock if lock entry is not cleaned upDefaultRedisCacheWriter
We require a revision of our configuration support for Likely, a configuration abstraction can help evolve the default implementation. |
…ation. Closes spring-projects#2300 Pull request: spring-projects#2597
RedisCacheWriter now can now issue locks that expire using TtlFunction to prevent eternal locks. Closes spring-projects#2300 Pull request: spring-projects#2597
Closes spring-projects#2300 Pull request: spring-projects#2597.
We ran into the situation that was referenced in DATAREDIS-1052
We had an exception during the attempt to unlock:
And there was no client to release this lock.
We were wondering if it would be possible to add the ability to send the expiration time in the SET NX command when this lock is created, so that system could automatically recover from this situation.
Thanks
Art
The text was updated successfully, but these errors were encountered: