Authored by jack

redis 增加重连 解决告警问题

... ... @@ -62,17 +62,17 @@ public class RedisTask extends Task {
connect();
//等待两秒重连
try {
if (null == client || !client.isConnected()) {
//等待两秒重连
try {
Thread.sleep(200);
Thread.sleep(200);
} catch (InterruptedException e) {
} catch (InterruptedException e) {
DEBUG.error("Failed to wait for reconnect to redis {}", super.url);
}
DEBUG.error("Failed to wait for reconnect to redis {}", super.url);
}
if (null == client || !client.isConnected()) {
connect();
}
... ...