Merge pull request #5929 from seakider/fix_concurrency

Fixed - Concurrency problem
pull/5937/head
Nikita Koksharov 8 months ago committed by GitHub
commit d8ae46993a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -165,11 +165,11 @@ public abstract class RedissonBaseLock extends RedissonExpirable implements RLoc
protected void scheduleExpirationRenewal(long threadId) {
ExpirationEntry entry = new ExpirationEntry();
entry.addThreadId(threadId);
ExpirationEntry oldEntry = EXPIRATION_RENEWAL_MAP.putIfAbsent(getEntryName(), entry);
if (oldEntry != null) {
oldEntry.addThreadId(threadId);
} else {
entry.addThreadId(threadId);
try {
renewExpiration();
} finally {

Loading…
Cancel
Save