Radovan Stancel created ARTEMIS-1761:
----------------------------------------

             Summary: 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: 2.5.0, 1.5.6
            Reporter: Radovan Stancel


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