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 GitHub Bot (Jira)" <ji...@apache.org> on 2021/09/16 23:50:00 UTC

[jira] [Work logged] (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?focusedWorklogId=652032&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-652032 ]

ASF GitHub Bot logged work on ARTEMIS-1946:
-------------------------------------------

                Author: ASF GitHub Bot
            Created on: 16/Sep/21 23:49
            Start Date: 16/Sep/21 23:49
    Worklog Time Spent: 10m 
      Work Description: asfgit closed pull request #2220:
URL: https://github.com/apache/activemq-artemis/pull/2220


   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: gitbox-unsubscribe@activemq.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Issue Time Tracking
-------------------

            Worklog Id:     (was: 652032)
    Remaining Estimate: 0h
            Time Spent: 10m

> 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
>          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)