Fixed - releaseConnection may not execute correctly

Signed-off-by: seakider <seakider@gmail.com>
pull/5883/head
seakider 10 months ago
parent f0b08cbdfc
commit ef97459b64

@ -100,7 +100,10 @@ public class RedisQueuedBatchExecutor<V, R> extends BaseRedisBatchExecutor<V, R>
|| RedisCommands.DISCARD.getName().equals(command.getName())) {
if (attempt < attempts
&& attemptPromise.isCompletedExceptionally()) {
return;
Throwable cause = cause(attemptPromise);
if (cause instanceof CancellationException) {
return;
}
}
super.releaseConnection(attemptPromise, connectionFuture);

Loading…
Cancel
Save