You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@activemq.apache.org by "Justin Bertram (Jira)" <ji...@apache.org> on 2021/09/16 23:56:03 UTC

[jira] [Resolved] (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:all-tabpanel ]

Justin Bertram resolved ARTEMIS-1946.
-------------------------------------
    Fix Version/s: 2.19.0
       Resolution: Fixed

> 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
>             Fix For: 2.19.0
>
>          Time Spent: 10m
>  Remaining Estimate: 0h
>
> 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)