|
|
@ -691,7 +691,6 @@ public class CommandBatchService extends CommandAsyncService {
|
|
|
|
details.setException(new RedisTimeoutException("Unable to get connection! "
|
|
|
|
details.setException(new RedisTimeoutException("Unable to get connection! "
|
|
|
|
+ "Node source: " + source + " after " + attempts + " retry attempts"));
|
|
|
|
+ "Node source: " + source + " after " + attempts + " retry attempts"));
|
|
|
|
}
|
|
|
|
}
|
|
|
|
connectionManager.getShutdownLatch().release();
|
|
|
|
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
|
if (connectionFuture.isSuccess()) {
|
|
|
|
if (connectionFuture.isSuccess()) {
|
|
|
|
if (details.getWriteFuture() == null || !details.getWriteFuture().isDone()) {
|
|
|
|
if (details.getWriteFuture() == null || !details.getWriteFuture().isDone()) {
|
|
|
@ -859,6 +858,7 @@ public class CommandBatchService extends CommandAsyncService {
|
|
|
|
RFuture<RedisConnection> connFuture, final boolean noResult, final long responseTimeout, final int attempts,
|
|
|
|
RFuture<RedisConnection> connFuture, final boolean noResult, final long responseTimeout, final int attempts,
|
|
|
|
ExecutionMode executionMode, final AtomicInteger slots) {
|
|
|
|
ExecutionMode executionMode, final AtomicInteger slots) {
|
|
|
|
if (connFuture.isCancelled()) {
|
|
|
|
if (connFuture.isCancelled()) {
|
|
|
|
|
|
|
|
connectionManager.getShutdownLatch().release();
|
|
|
|
return;
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|