Sentinel connection checking during startup

pull/282/head
Nikita 9 years ago
parent 7ddf605385
commit 29ad6bc0fa

@ -73,6 +73,9 @@ public class SentinelConnectionManager extends MasterSlaveConnectionManager {
RedisClient client = createClient(addr.getHost(), addr.getPort(), c.getTimeout());
try {
RedisConnection connection = client.connect();
if (!connection.isActive()) {
continue;
}
// TODO async
List<String> master = connection.sync(RedisCommands.SENTINEL_GET_MASTER_ADDR_BY_NAME, cfg.getMasterName());

Loading…
Cancel
Save