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

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

GitHub user rstancel opened a pull request:

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

    [ARTEMIS-1761] Log warning if cluster is not able to connect at startup

    Jira: https://issues.apache.org/jira/browse/ARTEMIS-1761
    master commit: 
https://github.com/apache/activemq-artemis/commit/373c3db2ac4c3b79d4f777ee32498c924176eba6

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

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

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

    https://github.com/apache/activemq-artemis/pull/1975.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 #1975
    
----
commit 6c397fda732837191c63e65507ad58a16b25bf70
Author: Radovan Stancel <rstancel@...>
Date:   2018-03-21T17:26:20Z

    [ARTEMIS-1761] Log warning if cluster is not able to connect at startup

----


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

Reply via email to