@ -123,12 +126,20 @@ public class ClusterConnectionManager extends MasterSlaveConnectionManager {
if(lastPartitions.isEmpty()){
stopThreads();
thrownewRedisConnectionException("Can't connect to servers!",lastException);
if(failedMasters.isEmpty()){
thrownewRedisConnectionException("Can't connect to servers!",lastException);
}else{
thrownewRedisConnectionException("Can't connect to servers! Failed masters according to cluster status: "+failedMasters,lastException);
}
}
if(lastPartitions.size()!=MAX_SLOT){
stopThreads();
thrownewRedisConnectionException("Not all slots are covered! Only "+lastPartitions.size()+" slots are avaliable",lastException);
if(failedMasters.isEmpty()){
thrownewRedisConnectionException("Not all slots are covered! Only "+lastPartitions.size()+" slots are avaliable",lastException);
}else{
thrownewRedisConnectionException("Not all slots are covered! Only "+lastPartitions.size()+" slots are avaliable. Failed masters according to cluster status: "+failedMasters,lastException);