ARTEMIS-3811 Cluster connections clashing with ANYCast addresses

This is a test fix for AMQPClusterReplicaTest
This commit is contained in:
Clebert Suconic 2022-05-03 09:36:25 -04:00 committed by clebertsuconic
parent dbde8c57d8
commit ee51a7806d
1 changed files with 1 additions and 1 deletions

View File

@ -354,7 +354,7 @@ public class SimpleAddressManager implements AddressManager {
final Bindings bindings = this.mappings.get(addressName); final Bindings bindings = this.mappings.get(addressName);
if (bindings != null) { if (bindings != null) {
for (Binding binding : bindings.getBindings()) { for (Binding binding : bindings.getBindings()) {
if (binding instanceof QueueBinding) { if (binding instanceof QueueBinding && binding.isLocal()) {
final QueueBinding queueBinding = (QueueBinding) binding; final QueueBinding queueBinding = (QueueBinding) binding;
final RoutingType routingType = queueBinding.getQueue().getRoutingType(); final RoutingType routingType = queueBinding.getQueue().getRoutingType();
if (!routingTypes.contains(routingType) && binding.getAddress().equals(addressName)) { if (!routingTypes.contains(routingType) && binding.getAddress().equals(addressName)) {