Few exception details fixed

pull/282/head
Nikita 9 years ago
parent aaf343e66a
commit 59d94f8a0c

@ -26,7 +26,6 @@ import java.util.concurrent.TimeUnit;
import java.util.concurrent.atomic.AtomicInteger; import java.util.concurrent.atomic.AtomicInteger;
import java.util.concurrent.atomic.AtomicReference; import java.util.concurrent.atomic.AtomicReference;
import org.redisson.CommandBatchExecutorService.CommandEntry;
import org.redisson.client.RedisAskException; import org.redisson.client.RedisAskException;
import org.redisson.client.RedisClient; import org.redisson.client.RedisClient;
import org.redisson.client.RedisConnection; import org.redisson.client.RedisConnection;

@ -127,7 +127,7 @@ abstract class BaseLoadBalancer implements LoadBalancer {
if (entry != null) { if (entry != null) {
return entries.get(entry); return entries.get(entry);
} }
RedisConnectionException exception = new RedisConnectionException("Can't find entry for " + client); RedisConnectionException exception = new RedisConnectionException("Can't find entry for " + client.getAddr());
return connectionManager.getGroup().next().newFailedFuture(exception); return connectionManager.getGroup().next().newFailedFuture(exception);
} }

@ -102,7 +102,7 @@ public class SentinelConnectionManager extends MasterSlaveConnectionManager {
} }
break; break;
} catch (RedisConnectionException e) { } catch (RedisConnectionException e) {
// skip log.warn("can't connect to sentinel", e);
} finally { } finally {
client.shutdownAsync(); client.shutdownAsync();
} }

@ -85,7 +85,7 @@ public class ConnectionPool<T extends RedisConnection> {
return promise; return promise;
} }
RedisConnectionException exception = new RedisConnectionException("Can't aquire connection for " + entry.getClient()); RedisConnectionException exception = new RedisConnectionException("Can't aquire connection to " + entry.getClient().getAddr());
return executor.newFailedFuture(exception); return executor.newFailedFuture(exception);
} }

Loading…
Cancel
Save