Jiri Ondrusek created ARTEMIS-1946:
--------------------------------------
Summary: Cluster with allow-direct-connections-only="true" and
localAddress in netty connections with allow-direct-connections-only="true"
prevents core bridge to be created.
Key: ARTEMIS-1946
URL: https://issues.apache.org/jira/browse/ARTEMIS-1946
Project: ActiveMQ Artemis
Issue Type: Bug
Affects Versions: 1.5.5, 2.7.0
Reporter: Jiri Ondrusek
If netty connector used for cluster creation contains localAddress, core bridge
is not created.
Reasons:
# TransportConfiguration with localAddress is saved as allowable connection
([https://github.com/apache/activemq-artemis/blob/master/artemis-server/src/main/java/org/apache/activemq/artemis/core/server/cluster/impl/ClusterConnectionImpl.java#L279])
# Incoming connection (which doesn't contain localAddress) is compared with
allwable connections
([https://github.com/apache/activemq-artemis/blob/master/artemis-server/src/main/java/org/apache/activemq/artemis/core/server/cluster/impl/ClusterConnectionImpl.java#L682)]
# If allow-direct-connections-only="true" is set, bridge is not created.
How to simply reproduce:
# define hosts to resove node1.domain and node2.domain as 127.0.0.1 (in
/etc/hosts add "127.0.0.1 node1.domain node2.domain")
# Apply changes from commit
https://github.com/JiriOndrusek/activemq-artemis/commit/0a873b6db736f067ef29a7d5db5fecd3541c2090
into sources
# Run examples/features/clustered/clustered-static-discovery (mvn verify)
# With changes from commit it will end with exception "Bridge is not working"
# If you remove {{allow-direct-connections-only="true" from both brokers,
example ends succesfully}}
Expected result:
* bridge is created even if localAddress is used
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)