Fixed - Config node address should be filled out.

pull/1792/head
Nikita Koksharov 6 years ago
parent f1526a93fd
commit 69d879f726

@ -92,6 +92,10 @@ public class ClusterConnectionManager extends MasterSlaveConnectionManager {
public ClusterConnectionManager(ClusterServersConfig cfg, Config config, UUID id) {
super(config, id);
if (cfg.getNodeAddresses().isEmpty()) {
throw new IllegalArgumentException("At least one cluster node should be defined!");
}
this.config = create(cfg);
initTimer(this.config);

@ -78,6 +78,9 @@ public class SentinelConnectionManager extends MasterSlaveConnectionManager {
if (cfg.getMasterName() == null) {
throw new IllegalArgumentException("masterName parameter is not defined!");
}
if (cfg.getSentinelAddresses().isEmpty()) {
throw new IllegalArgumentException("At least one sentinel node should be defined!");
}
this.config = create(cfg);
initTimer(this.config);

Loading…
Cancel
Save