Fixed - internal RedissonBaseLock.evalWriteAsync() method isn't executed again if cluster slaves amount > 0 #3419

pull/3438/head
Nikita Koksharov 4 years ago
parent cbbc644223
commit 46cbb2e186

@ -117,11 +117,6 @@ public class RedisCommonBatchExecutor extends RedisExecutor<Object, Void> {
writeFuture = connection.send(new CommandsData(attemptPromise, list, options.isSkipResult(), isAtomic, isQueued, options.getSyncSlaves() > 0));
}
@Override
protected boolean isResendAllowed(int attempt, int attempts) {
return options.getSyncSlaves() == 0 && super.isResendAllowed(attempt, attempts);
}
protected boolean isWaitCommand(CommandData<?, ?> c) {
return c.getCommand().getName().equals(RedisCommands.WAIT.getName());
}

Loading…
Cancel
Save