mindwind/craft-atom

Redis master slave switch may throw exception

Closed this issue · 0 comments

Some cases may throw RedisDataException

try {
       s.slaveof(m.host(), m.port());
     } catch (RedisConnectionException e) {
    LOG.warn("[CRAFT-ATOM-REDIS] {} slaveof {} failed", s.toString(), m.toString());
}