Fixed - pubsub/updates broken after AWS Elasticache cluster failover. #4653

pull/4694/head
Nikita Koksharov 2 years ago
parent 9bdc2961af
commit 7627cb441d

@ -860,7 +860,8 @@ public class ClusterConnectionManager extends MasterSlaveConnectionManager {
List<ClusterPartition> ps = partitions.values()
.stream()
.filter(cp -> cp.getType() == Type.MASTER
&& cp.getMasterAddress() != null)
&& cp.getMasterAddress() != null
&& ((!cp.slots().isEmpty() && partitions.size() == 1) || partitions.size() > 1))
.collect(Collectors.toList());
return ps;
});

Loading…
Cancel
Save