You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@activemq.apache.org by "ASF subversion and git services (Jira)" <ji...@apache.org> on 2021/09/16 23:50:00 UTC

[jira] [Commented] (ARTEMIS-1946) Cluster with allow-direct-connections-only="true" and localAddress in netty connections with allow-direct-connections-only="true" prevents core bridge to be created.

    [ https://issues.apache.org/jira/browse/ARTEMIS-1946?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17416365#comment-17416365 ] 

ASF subversion and git services commented on ARTEMIS-1946:
----------------------------------------------------------

Commit 4d429b115c21e37d5763daa124616c9b77a19408 in activemq-artemis's branch refs/heads/main from JiriOndrusek
[ https://gitbox.apache.org/repos/asf?p=activemq-artemis.git;h=4d429b1 ]

[ARTEMIS-1946] Cluster with allow-direct-connections-only="true" and localAddress in netty connections with allow-direct-connections-only="true" prevents core bridge to be created.


> 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
>            Priority: Major
>
> If netty connector, which is 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
(v8.3.4#803005)