|
|
|
@ -747,14 +747,6 @@ public class CommandAsyncService implements CommandAsyncExecutor {
|
|
|
|
|
TimerTask timeoutTask = new TimerTask() {
|
|
|
|
|
@Override
|
|
|
|
|
public void run(Timeout timeout) throws Exception {
|
|
|
|
|
MasterSlaveEntry entry = connectionManager.getEntry(connection.getRedisClient());
|
|
|
|
|
if (entry != null) {
|
|
|
|
|
ClientConnectionsEntry ee = entry.getEntry(connection.getRedisClient());
|
|
|
|
|
if (ee != null && ee.getNodeType() == NodeType.SLAVE) {
|
|
|
|
|
ee.trySetupFistFail();
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
details.getAttemptPromise().tryFailure(
|
|
|
|
|
new RedisResponseTimeoutException("Redis server response timeout (" + timeoutAmount + " ms) occured for command: " + details.getCommand()
|
|
|
|
|
+ " with params: " + LogHelper.toString(details.getParams()) + " channel: " + connection.getChannel()));
|
|
|
|
@ -910,16 +902,6 @@ public class CommandAsyncService implements CommandAsyncExecutor {
|
|
|
|
|
|
|
|
|
|
free(details.getParams());
|
|
|
|
|
|
|
|
|
|
if (!(future.cause() instanceof RedisTimeoutException) && details.getConnectionFuture().getNow() != null) {
|
|
|
|
|
MasterSlaveEntry entry = connectionManager.getEntry(details.getConnectionFuture().getNow().getRedisClient());
|
|
|
|
|
if (entry != null) {
|
|
|
|
|
ClientConnectionsEntry ee = entry.getEntry(details.getConnectionFuture().getNow().getRedisClient());
|
|
|
|
|
if (ee != null && ee.getNodeType() == NodeType.SLAVE) {
|
|
|
|
|
ee.resetFirstFail();
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if (future.isSuccess()) {
|
|
|
|
|
R res = future.getNow();
|
|
|
|
|
if (res instanceof ScanResult) {
|
|
|
|
|