Fixed - an error shouldn't appear if Redisson successfully got the information at least from one sentinel/cluster server. #1366

pull/1423/head
Nikita 7 years ago
parent 4e900cb412
commit bcdc19d7db

@ -347,7 +347,9 @@ public class ClusterConnectionManager extends MasterSlaveConnectionManager {
private void checkClusterState(final ClusterServersConfig cfg, final Iterator<URI> iterator, final AtomicReference<Throwable> lastException) {
if (!iterator.hasNext()) {
log.error("Can't update cluster state", lastException.get());
if (lastException.get() != null) {
log.error("Can't update cluster state", lastException.get());
}
scheduleClusterChangeCheck(cfg, null);
return;
}

@ -248,7 +248,9 @@ public class SentinelConnectionManager extends MasterSlaveConnectionManager {
private void checkState(final SentinelServersConfig cfg, final Iterator<RedisClient> iterator, final AtomicReference<Throwable> lastException) {
if (!iterator.hasNext()) {
log.error("Can't update cluster state", lastException.get());
if (lastException.get() != null) {
log.error("Can't update cluster state", lastException.get());
}
scheduleChangeCheck(cfg, null);
return;
}

Loading…
Cancel
Save