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() List<ClusterPartition> ps = partitions.values()
.stream() .stream()
.filter(cp -> cp.getType() == Type.MASTER .filter(cp -> cp.getType() == Type.MASTER
&& cp.getMasterAddress() != null) && cp.getMasterAddress() != null
&& ((!cp.slots().isEmpty() && partitions.size() == 1) || partitions.size() > 1))
.collect(Collectors.toList()); .collect(Collectors.toList());
return ps; return ps;
}); });

Loading…
Cancel
Save