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 2018/03/21 17:33:00 UTC

[jira] [Commented] (ARTEMIS-1761) Log one warning if cluster could not be formed because it's not possible to connect to other cluster node

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

ASF GitHub Bot commented on ARTEMIS-1761:
-----------------------------------------

GitHub user rstancel opened a pull request:

    https://github.com/apache/activemq-artemis/pull/1964

    [ARTEMIS-1761] Log one warning if cluster could not be formed because…

    … it's not possible to connect to other cluster node
    
    Jira: https://issues.apache.org/jira/browse/ARTEMIS-1761

You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/rstancel/jboss-activemq-artemis ARTEMIS-1761

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/activemq-artemis/pull/1964.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #1964
    
----
commit 0aad3b89948df94fa414e81d4b5190505940f4b1
Author: Radovan STANCEL <rs...@...>
Date:   2018-03-21T17:26:20Z

    [ARTEMIS-1761] Log one warning if cluster could not be formed because it's not possible to connect to other cluster node

----


> Log one warning if cluster could not be formed because it's not possible to connect to other cluster node
> ---------------------------------------------------------------------------------------------------------
>
>                 Key: ARTEMIS-1761
>                 URL: https://issues.apache.org/jira/browse/ARTEMIS-1761
>             Project: ActiveMQ Artemis
>          Issue Type: Bug
>    Affects Versions: 1.5.6, 2.5.0
>            Reporter: Radovan Stancel
>            Priority: Major
>
> If discovery-group receives connector which is not possible to use to create cluster connection (using such connector fails) then server should log one warning. Currently server is logging this on DEBUG level which is confusing and it's not clear why cluster was not formed. It's just silently retrying bad connector on background (on debug level).
> Current debug logs:
> {code}
> 14:43:45,777 DEBUG [org.apache.activemq.artemis.core.server.cluster.impl.BridgeImpl] (Thread-4 (ActiveMQ-server-org.apache.activemq.artemis.core.server.impl.ActiveMQServerImpl$3@3f47a5c5)) Bridge ClusterConnecti
> onBridge@516796ab [name=sf.my-cluster.6eca14fb-4535-11e7-bc50-3ca9f4349bfc, queue=QueueImpl[name=sf.my-cluster.6eca14fb-4535-11e7-bc50-3ca9f4349bfc, postOffice=PostOfficeImpl [server=ActiveMQServerImpl::serverUU
> ID=5630528e-4535-11e7-9213-3c970e9648c8]]@2d035848 targetConnector=ServerLocatorImpl (identity=(Cluster-connection-bridge::ClusterConnectionBridge@516796ab [name=sf.my-cluster.6eca14fb-4535-11e7-bc50-3ca9f4349bf
> c, queue=QueueImpl[name=sf.my-cluster.6eca14fb-4535-11e7-bc50-3ca9f4349bfc, postOffice=PostOfficeImpl [server=ActiveMQServerImpl::serverUUID=5630528e-4535-11e7-9213-3c970e9648c8]]@2d035848 targetConnector=Server
> LocatorImpl [initialConnectors=[TransportConfiguration(name=http-connector, factory=org-apache-activemq-artemis-core-remoting-impl-netty-NettyConnectorFactory) ?httpUpgradeEndpoint=https-acceptor&activemqServerN
> ame=default&httpUpgradeEnabled=true&port=9080&host=localhost], discoveryGroupConfiguration=null]]::ClusterConnectionImpl@386706758[nodeUUID=5630528e-4535-11e7-9213-3c970e9648c8, connector=TransportConfiguration(
> name=http-connector, factory=org-apache-activemq-artemis-core-remoting-impl-netty-NettyConnectorFactory) ?httpUpgradeEndpoint=https-acceptor&activemqServerName=default&httpUpgradeEnabled=true&port=8080&host=loca
> lhost, address=jms, server=ActiveMQServerImpl::serverUUID=5630528e-4535-11e7-9213-3c970e9648c8])) [initialConnectors=[TransportConfiguration(name=http-connector, factory=org-apache-activemq-artemis-core-remoting
> -impl-netty-NettyConnectorFactory) ?httpUpgradeEndpoint=https-acceptor&activemqServerName=default&httpUpgradeEnabled=true&port=9080&host=localhost], discoveryGroupConfiguration=null]] is unable to connect to des
> tination. Retrying: ActiveMQNotConnectedException[errorType=NOT_CONNECTED message=Unable to connect to server using configuration TransportConfiguration(name=http-connector, factory=org-apache-activemq-artemis-c
> ore-remoting-impl-netty-NettyConnectorFactory) ?httpUpgradeEndpoint=https-acceptor&activemqServerName=default&httpUpgradeEnabled=true&port=9080&host=localhost]
>         at org.apache.activemq.artemis.core.client.impl.ClientSessionFactoryImpl.connect(ClientSessionFactoryImpl.java:245) [artemis-core-client-1.5.5.001-redhat-1.jar:1.5.5.001-redhat-1]
>         at org.apache.activemq.artemis.core.client.impl.ServerLocatorImpl.createSessionFactory(ServerLocatorImpl.java:685) [artemis-core-client-1.5.5.001-redhat-1.jar:1.5.5.001-redhat-1]
>         at org.apache.activemq.artemis.core.client.impl.ServerLocatorImpl.createSessionFactory(ServerLocatorImpl.java:659) [artemis-core-client-1.5.5.001-redhat-1.jar:1.5.5.001-redhat-1]
>         at org.apache.activemq.artemis.core.server.cluster.impl.ClusterConnectionBridge.createSessionFactory(ClusterConnectionBridge.java:136) [artemis-server-1.5.5.001-redhat-1.jar:1.5.5.001-redhat-1]
>         at org.apache.activemq.artemis.core.server.cluster.impl.BridgeImpl.connect(BridgeImpl.java:857) [artemis-server-1.5.5.001-redhat-1.jar:1.5.5.001-redhat-1]
>         at org.apache.activemq.artemis.core.server.cluster.impl.BridgeImpl$ConnectRunnable.run(BridgeImpl.java:1048) [artemis-server-1.5.5.001-redhat-1.jar:1.5.5.001-redhat-1]
>         at org.apache.activemq.artemis.utils.OrderedExecutorFactory$OrderedExecutor$ExecutorTask.run(OrderedExecutorFactory.java:101) [artemis-commons-1.5.5.001-redhat-1.jar:1.5.5.001-redhat-1]
>         at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) [rt.jar:1.8.0_71]
>         at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) [rt.jar:1.8.0_71]
>         at java.lang.Thread.run(Thread.java:745) [rt.jar:1.8.0_71]
> 14:43:45,778 DEBUG [org.apache.activemq.artemis.core.server.cluster.impl.BridgeImpl] (Thread-4 (ActiveMQ-server-org.apache.activemq.artemis.core.server.impl.ActiveMQServerImpl$3@3f47a5c5)) Bridge ClusterConnecti
> onBridge@516796ab [name=sf.my-cluster.6eca14fb-4535-11e7-bc50-3ca9f4349bfc, queue=QueueImpl[name=sf.my-cluster.6eca14fb-4535-11e7-bc50-3ca9f4349bfc, postOffice=PostOfficeImpl [server=ActiveMQServerImpl::serverUU
> ID=5630528e-4535-11e7-9213-3c970e9648c8]]@2d035848 targetConnector=ServerLocatorImpl (identity=(Cluster-connection-bridge::ClusterConnectionBridge@516796ab [name=sf.my-cluster.6eca14fb-4535-11e7-bc50-3ca9f4349bf
> c, queue=QueueImpl[name=sf.my-cluster.6eca14fb-4535-11e7-bc50-3ca9f4349bfc, postOffice=PostOfficeImpl [server=ActiveMQServerImpl::serverUUID=5630528e-4535-11e7-9213-3c970e9648c8]]@2d035848 targetConnector=Server
> LocatorImpl [initialConnectors=[TransportConfiguration(name=http-connector, factory=org-apache-activemq-artemis-core-remoting-impl-netty-NettyConnectorFactory) ?httpUpgradeEndpoint=https-acceptor&activemqServerN
> ame=default&httpUpgradeEnabled=true&port=9080&host=localhost], discoveryGroupConfiguration=null]]::ClusterConnectionImpl@386706758[nodeUUID=5630528e-4535-11e7-9213-3c970e9648c8, connector=TransportConfiguration(
> name=http-connector, factory=org-apache-activemq-artemis-core-remoting-impl-netty-NettyConnectorFactory) ?httpUpgradeEndpoint=https-acceptor&activemqServerName=default&httpUpgradeEnabled=true&port=8080&host=loca
> lhost, address=jms, server=ActiveMQServerImpl::serverUUID=5630528e-4535-11e7-9213-3c970e9648c8])) [initialConnectors=[TransportConfiguration(name=http-connector, factory=org-apache-activemq-artemis-core-remoting
> -impl-netty-NettyConnectorFactory) ?httpUpgradeEndpoint=https-acceptor&activemqServerName=default&httpUpgradeEnabled=true&port=9080&host=localhost], discoveryGroupConfiguration=null]] retrying connection #59, ma
> xRetry=-1, timeout=500
> {code}



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)