Fixed - ERR invalid expire time error is thrown during RLock.unlock() call if retryAttempts = 0. #5392

pull/5399/head
Nikita Koksharov 1 year ago
parent 5a36a974fc
commit 31980c80d5

@ -338,6 +338,7 @@ public abstract class RedissonBaseLock extends RedissonExpirable implements RLoc
String id = getServiceManager().generateId();
MasterSlaveServersConfig config = getServiceManager().getConfig();
int timeout = (config.getTimeout() + config.getRetryInterval()) * config.getRetryAttempts();
timeout = Math.max(timeout, 1);
RFuture<Boolean> r = unlockInnerAsync(threadId, id, timeout);
CompletionStage<Boolean> ff = r.thenApply(v -> {
CommandAsyncExecutor ce = commandExecutor;

Loading…
Cancel
Save