ARTEMIS-3811 Cluster connections clashing with ANYCast addresses
This is a test fix for AMQPClusterReplicaTest
This commit is contained in:
parent
dbde8c57d8
commit
ee51a7806d
|
@ -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)) {
|
||||||
|
|
Loading…
Reference in New Issue