2 Replies Latest reply on Apr 22, 2013 5:17 AM by jiajiefeng

    HornetQ cluster with "connection-ttl-override" property

    jiajiefeng

      I have a cluster with to node and add connection-ttl-override  property in erey config/stand-alone/clustered/hornetq-configuration.xml configuration file

       

      config/stand-alone/clustered/hornetq-configuration.xml

       

      <connection-ttl-override>6000</connection-ttl-override>

       


      The log is:  is a bug?

       

      18:34:38,781 WARN  [org.hornetq.core.client] HQ212037: Connection failure has been detected: HQ119014: Did not receive data from /172.17.103.162:53846. It is likely the client has exited or crashed without closing its connection, or the network between the server and client has failed. You also might have configured connection-ttl and client-failure-check-period incorrectly. Please check user manual for more information. The connection will now be closed. [code=CONNECTION_TIMEDOUT]

      18:34:38,784 WARN  [org.hornetq.core.server] HQ222061: Client connection failed, clearing up resources for session 8dd35b53-a813-11e2-93c7-81158678ae9c

      18:34:38,789 WARN  [org.hornetq.core.server] HQ222107: Cleared up resources for session 8dd35b53-a813-11e2-93c7-81158678ae9c

      18:34:38,797 WARN  [org.hornetq.core.client] HQ212037: Connection failure has been detected: HQ119014: Did not receive data from /172.17.103.161:51019. It is likely the client has exited or crashed without closing its connection, or the network between the server and client has failed. You also might have configured connection-ttl and client-failure-check-period incorrectly. Please check user manual for more information. The connection will now be closed. [code=CONNECTION_TIMEDOUT]

      18:34:39,036 WARN  [org.hornetq.core.server] HQ222095: Connection failed with failedOver=false: HornetQException[errorType=NOT_CONNECTED message=HQ119006: Channel disconnected]

          at org.hornetq.core.client.impl.ClientSessionFactoryImpl.connectionDestroyed(ClientSessionFactoryImpl.java:418) [hornetq-core-client.jar:]

          at org.hornetq.core.remoting.impl.netty.NettyConnector$Listener$1.run(NettyConnector.java:871) [hornetq-core-client.jar:]

          at org.hornetq.utils.OrderedExecutorFactory$OrderedExecutor$1.run(OrderedExecutorFactory.java:106) [hornetq-core-client.jar:]

          at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) [rt.jar:1.6.0_37]

          at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) [rt.jar:1.6.0_37]

          at java.lang.Thread.run(Thread.java:662) [rt.jar:1.6.0_37]

       

      18:34:39,573 INFO  [org.hornetq.core.server] HQ221027: Bridge ClusterConnectionBridge@7fb2380e [name=sf.my-cluster.76aca673-a812-11e2-9f3a-812da7ede966, queue=QueueImpl[name=sf.my-cluster.76aca673-a812-11e2-9f3a-812da7ede966, postOffice=PostOfficeImpl [server=HornetQServerImpl::serverUUID=d33b6965-a812-11e2-85ef-7fd2f69377d8]]@d7e60a1 targetConnector=ServerLocatorImpl (identity=(Cluster-connection-bridge::ClusterConnectionBridge@7fb2380e [name=sf.my-cluster.76aca673-a812-11e2-9f3a-812da7ede966, queue=QueueImpl[name=sf.my-cluster.76aca673-a812-11e2-9f3a-812da7ede966, postOffice=PostOfficeImpl [server=HornetQServerImpl::serverUUID=d33b6965-a812-11e2-85ef-7fd2f69377d8]]@d7e60a1 targetConnector=ServerLocatorImpl [initialConnectors=[TransportConfiguration(name=netty, factory=org-hornetq-core-remoting-impl-netty-NettyConnectorFactory) ?port=5445&host=172-17-103-162], discoveryGroupConfiguration=null]]::ClusterConnectionImpl@1932028688[nodeUUID=d33b6965-a812-11e2-85ef-7fd2f69377d8, connector=TransportConfiguration(name=netty, factory=org-hornetq-core-remoting-impl-netty-NettyConnectorFactory) ?port=5446&host=172-17-103-161, address=jms, server=HornetQServerImpl::serverUUID=d33b6965-a812-11e2-85ef-7fd2f69377d8])) [initialConnectors=[TransportConfiguration(name=netty, factory=org-hornetq-core-remoting-impl-netty-NettyConnectorFactory) ?port=5445&host=172-17-103-162], discoveryGroupConfiguration=null]] is connected

      18:34:46,801 WARN  [org.hornetq.core.client] HQ212037: Connection failure has been detected: HQ119014: Did not receive data from /172.17.103.162:58291. It is likely the client has exited or crashed without closing its connection, or the network between the server and client has failed. You also might have configured connection-ttl and client-failure-check-period incorrectly. Please check user manual for more information. The connection will now be closed. [code=CONNECTION_TIMEDOUT]

      18:34:46,803 WARN  [org.hornetq.core.server] HQ222061: Client connection failed, clearing up resources for session 92c6e78a-a813-11e2-93c7-81158678ae9c

      18:34:46,807 WARN  [org.hornetq.core.server] HQ222107: Cleared up resources for session 92c6e78a-a813-11e2-93c7-81158678ae9c

      18:34:47,049 WARN  [org.hornetq.core.server] HQ222095: Connection failed with failedOver=false: HornetQException[errorType=NOT_CONNECTED message=HQ119006: Channel disconnected]

          at org.hornetq.core.client.impl.ClientSessionFactoryImpl.connectionDestroyed(ClientSessionFactoryImpl.java:418) [hornetq-core-client.jar:]

          at org.hornetq.core.remoting.impl.netty.NettyConnector$Listener$1.run(NettyConnector.java:871) [hornetq-core-client.jar:]

          at org.hornetq.utils.OrderedExecutorFactory$OrderedExecutor$1.run(OrderedExecutorFactory.java:106) [hornetq-core-client.jar:]

          at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) [rt.jar:1.6.0_37]

          at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) [rt.jar:1.6.0_37]

          at java.lang.Thread.run(Thread.java:662) [rt.jar:1.6.0_37]

       

      18:34:47,576 INFO  [org.hornetq.core.server] HQ221027: Bridge ClusterConnectionBridge@7fb2380e [name=sf.my-cluster.76aca673-a812-11e2-9f3a-812da7ede966, queue=QueueImpl[name=sf.my-cluster.76aca673-a812-11e2-9f3a-812da7ede966, postOffice=PostOfficeImpl [server=HornetQServerImpl::serverUUID=d33b6965-a812-11e2-85ef-7fd2f69377d8]]@d7e60a1 targetConnector=ServerLocatorImpl (identity=(Cluster-connection-bridge::ClusterConnectionBridge@7fb2380e [name=sf.my-cluster.76aca673-a812-11e2-9f3a-812da7ede966, queue=QueueImpl[name=sf.my-cluster.76aca673-a812-11e2-9f3a-812da7ede966, postOffice=PostOfficeImpl [server=HornetQServerImpl::serverUUID=d33b6965-a812-11e2-85ef-7fd2f69377d8]]@d7e60a1 targetConnector=ServerLocatorImpl [initialConnectors=[TransportConfiguration(name=netty, factory=org-hornetq-core-remoting-impl-netty-NettyConnectorFactory) ?port=5445&host=172-17-103-162], discoveryGroupConfiguration=null]]::ClusterConnectionImpl@1932028688[nodeUUID=d33b6965-a812-11e2-85ef-7fd2f69377d8, connector=TransportConfiguration(name=netty, factory=org-hornetq-core-remoting-impl-netty-NettyConnectorFactory) ?port=5446&host=172-17-103-161, address=jms, server=HornetQServerImpl::serverUUID=d33b6965-a812-11e2-85ef-7fd2f69377d8])) [initialConnectors=[TransportConfiguration(name=netty, factory=org-hornetq-core-remoting-impl-netty-NettyConnectorFactory) ?port=5445&host=172-17-103-162], discoveryGroupConfiguration=null]] is connected

        • 1. Re: HornetQ cluster with "connection-ttl-override" property
          ataylor

          what is the client-failure-check-period set to, it should be less than the ttl

          • 2. Re: HornetQ cluster with "connection-ttl-override" property
            jiajiefeng

            @Andy

             

            I set <connection-ttl-override>6000</connection-ttl-override>  in hornetq-configuration.xml and set <client-failure-check-period>2000</client-failure-check-period> in hornetq-jms.xml

             

            <connection-factory name="NettyConnectionFactory">

                  <xa>false</xa>

                  <connectors>

                     <connector-ref connector-name="netty"/>

                  </connectors>

                  <entries>

                     <entry name="/ConnectionFactory"/>

                  </entries>

                  <client-failure-check-period>2000</client-failure-check-period>

                  <consumer-window-size>0</consumer-window-size>

               </connection-factory>

             

            but  it  have no effect .