-
Notifications
You must be signed in to change notification settings - Fork 5.3k
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
Two different threads have reported acquiring a lock with the same key at the same time #5563
Comments
Please share the code to reproduce the issue. |
Make sure that the lock wasn't unlocked by the time when the second thread acquired it. |
Thanks reply,
|
This is occurring in a concurrent scenario where the real situation involves listening to a database change data capture (CDC). Then, two threads simultaneously acquire the lock and save two separate task data. |
Can you add add |
thanks for your help |
Redisson version :
Here is my code:
2024-01-12T12:00:07.514288425Z 2024-01-12 12:00:07.514 INFO 7 --- [ XNIO-1 task-4] .s.p.a.t.c.h.i.test : locked by key:App:Procurement:PENDING_PRICING:1400_65_2 with thread:XNIO-1 task-4
2024-01-12T12:00:07.542088285Z 2024-01-12 12:00:07.541 INFO 7 --- [ XNIO-1 task-2] .s.p.a.t.c.h.i.test : locked by key:App:Procurement:PENDING_PRICING:1400_65_2 with thread:XNIO-1 task-2
The text was updated successfully, but these errors were encountered: