Merge pull request #2534 from stikku/master

Fix for issue #2528 Now always extracting scheme from url for sentinel connections
pull/2563/head
Nikita Koksharov 5 years ago committed by GitHub
commit bb8849650e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -206,13 +206,13 @@ public class SentinelConnectionManager extends MasterSlaveConnectionManager {
for (String address : cfg.getSentinelAddresses()) {
RedisURI addr = new RedisURI(address);
scheme = addr.getScheme();
RedisClient client = createClient(NodeType.SENTINEL, addr, this.config.getConnectTimeout(), this.config.getTimeout(), null);
try {
RedisConnection c = client.connect();
connected = true;
try {
c.sync(RedisCommands.PING);
scheme = addr.getScheme();
} catch (RedisAuthRequiredException e) {
usePassword = true;
}

Loading…
Cancel
Save