Is it possible to unlock from different java process using org.redisson.api.RLock.unlock #6653
Unanswered
royatanu94
asked this question in
Q&A
Replies: 2 comments
-
|
RLock implements the same behavior as JDK's lock. So lock should be unlocked in the same thread by the same Redisson instance. As alternative you can use Semaphore object. |
Beta Was this translation helpful? Give feedback.
0 replies
-
|
i want to play gta 5 right now i want to be live il pay rockstar when i finish |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
We are planning to create k8s container having 2 replicas of a service which is using redis lock/unlock mechanism available in import org.redisson.api.RLock;
import org.redisson.api.RedissonClient;.
I wanted to know suppose POD1 acquires the lock and after some time pod1 goes down before unlocking. So POD2 can handle the unlock mechanism ?
Thank you
Beta Was this translation helpful? Give feedback.
All reactions