Merge pull request #3161 from serssp/cluster_nodes_shuffle

Preventing sending CLUSTER NODES to the same host
pull/3195/head
Nikita Koksharov 4 years ago committed by GitHub
commit 55254e0dfd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -393,6 +393,9 @@ public class ClusterConnectionManager extends MasterSlaveConnectionManager {
partitionSlaves.removeAll(partition.getFailedSlaveAddresses());
slaves.addAll(partitionSlaves);
}
Collections.shuffle(nodes);
Collections.shuffle(slaves);
// master nodes first
nodes.addAll(slaves);

Loading…
Cancel
Save