Uploaded image for project: 'AMQ Broker'
  1. AMQ Broker
  2. ENTMQBR-783

Live broker stopped if its Backup broker goes down.

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • AMQ 7.1.0.CR2
    • AMQ 7.0.2.GA
    • None
    • None
    • Hide

      1. Start 3 pairs of Live-Backup brokers.
      2. Kill Backup1 broker.
      3. Notice that Live1 has been stopped.
      4. Start Live1 manually
      5. Notice that Live1 serves as expected even if Backup1 is still down.

      Show
      1. Start 3 pairs of Live-Backup brokers. 2. Kill Backup1 broker. 3. Notice that Live1 has been stopped. 4. Start Live1 manually 5. Notice that Live1 serves as expected even if Backup1 is still down.

      If Backup broker goes down respective Live broker log contains warning:

      09:45:31,214 WARN  [org.apache.activemq.artemis.core.server] AMQ222092: Connection to the backup node failed, removing replication now: ActiveMQRemoteDisconnectException[errorType=REMOTE_DISCONNECT message=null]
              at org.apache.activemq.artemis.core.remoting.server.impl.RemotingServiceImpl.connectionDestroyed(RemotingServiceImpl.java:539) [artemis-server-2.0.0.amq-700011-redhat-1.jar:2.0.0.amq-700011-redhat-1]
              at org.apache.activemq.artemis.core.remoting.impl.netty.NettyAcceptor$Listener.connectionDestroyed(NettyAcceptor.java:719) [artemis-server-2.0.0.amq-700011-redhat-1.jar:2.0.0.amq-700011-redhat-1]
              at org.apache.activemq.artemis.core.remoting.impl.netty.ActiveMQChannelHandler.channelInactive(ActiveMQChannelHandler.java:79) [artemis-core-client-2.0.0.amq-700011-redhat-1.jar:2.0.0.amq-700011-redhat-1]
              at io.netty.channel.AbstractChannelHandlerContext.invokeChannelInactive(AbstractChannelHandlerContext.java:245) [netty-all-4.1.9.Final-redhat-2.jar:4.1.9.Final-redhat-2]
              at io.netty.channel.AbstractChannelHandlerContext.invokeChannelInactive(AbstractChannelHandlerContext.java:231) [netty-all-4.1.9.Final-redhat-2.jar:4.1.9.Final-redhat-2]
              at io.netty.channel.AbstractChannelHandlerContext.fireChannelInactive(AbstractChannelHandlerContext.java:224) [netty-all-4.1.9.Final-redhat-2.jar:4.1.9.Final-redhat-2]
              at io.netty.handler.codec.ByteToMessageDecoder.channelInputClosed(ByteToMessageDecoder.java:360) [netty-all-4.1.9.Final-redhat-2.jar:4.1.9.Final-redhat-2]
              at io.netty.handler.codec.ByteToMessageDecoder.channelInactive(ByteToMessageDecoder.java:325) [netty-all-4.1.9.Final-redhat-2.jar:4.1.9.Final-redhat-2]
              at io.netty.channel.AbstractChannelHandlerContext.invokeChannelInactive(AbstractChannelHandlerContext.java:245) [netty-all-4.1.9.Final-redhat-2.jar:4.1.9.Final-redhat-2]
              at io.netty.channel.AbstractChannelHandlerContext.invokeChannelInactive(AbstractChannelHandlerContext.java:231) [netty-all-4.1.9.Final-redhat-2.jar:4.1.9.Final-redhat-2]
              at io.netty.channel.AbstractChannelHandlerContext.fireChannelInactive(AbstractChannelHandlerContext.java:224) [netty-all-4.1.9.Final-redhat-2.jar:4.1.9.Final-redhat-2]
              at io.netty.channel.DefaultChannelPipeline$HeadContext.channelInactive(DefaultChannelPipeline.java:1329) [netty-all-4.1.9.Final-redhat-2.jar:4.1.9.Final-redhat-2]
              at io.netty.channel.AbstractChannelHandlerContext.invokeChannelInactive(AbstractChannelHandlerContext.java:245) [netty-all-4.1.9.Final-redhat-2.jar:4.1.9.Final-redhat-2]
              at io.netty.channel.AbstractChannelHandlerContext.invokeChannelInactive(AbstractChannelHandlerContext.java:231) [netty-all-4.1.9.Final-redhat-2.jar:4.1.9.Final-redhat-2]
              at io.netty.channel.DefaultChannelPipeline.fireChannelInactive(DefaultChannelPipeline.java:908) [netty-all-4.1.9.Final-redhat-2.jar:4.1.9.Final-redhat-2]
              at io.netty.channel.AbstractChannel$AbstractUnsafe$7.run(AbstractChannel.java:744) [netty-all-4.1.9.Final-redhat-2.jar:4.1.9.Final-redhat-2]
              at io.netty.util.concurrent.AbstractEventExecutor.safeExecute(AbstractEventExecutor.java:163) [netty-all-4.1.9.Final-redhat-2.jar:4.1.9.Final-redhat-2]
              at io.netty.util.concurrent.SingleThreadEventExecutor.runAllTasks(SingleThreadEventExecutor.java:403) [netty-all-4.1.9.Final-redhat-2.jar:4.1.9.Final-redhat-2]
              at io.netty.channel.epoll.EpollEventLoop.run(EpollEventLoop.java:304) [netty-all-4.1.9.Final-redhat-2.jar:4.1.9.Final-redhat-2]
              at io.netty.util.concurrent.SingleThreadEventExecutor$5.run(SingleThreadEventExecutor.java:858) [netty-all-4.1.9.Final-redhat-2.jar:4.1.9.Final-redhat-2]
              at java.lang.Thread.run(Thread.java:748) [rt.jar:1.8.0_141]
      
      09:45:31,216 INFO  [org.apache.activemq.artemis.core.server] AMQ221067: Waiting 5 seconds for quorum vote results.
      09:45:31,230 INFO  [org.apache.activemq.artemis.core.server] AMQ221060: Sending quorum vote request to 10.37.145.97/10.37.145.97:61616: ServerConnectVote [nodeId=b89a1698-8bca-11e7-9633-525400ae19ff, vote=false]
      09:45:31,233 INFO  [org.apache.activemq.artemis.core.server] AMQ221061: Received quorum vote response from 10.37.145.97/10.37.145.97:61616: ServerConnectVote [nodeId=b89a1698-8bca-11e7-9633-525400ae19ff, vote=false]
      09:45:31,243 INFO  [org.apache.activemq.artemis.core.server] AMQ221068: Received all quorum votes.
      09:45:31,269 INFO  [org.apache.activemq.artemis.core.server] AMQ221029: stopped bridge $.artemis.internal.sf.entmqbr-260-cluster.b8a11b2a-8bca-11e7-b83b-5254004d6e0d
      09:45:31,270 INFO  [org.apache.activemq.artemis.core.server] AMQ221029: stopped bridge $.artemis.internal.sf.entmqbr-260-cluster.b89e356e-8bca-11e7-b931-525400fa73cb
      09:45:41,403 WARN  [org.apache.activemq.artemis.core.server] AMQ222002: Timed out waiting for pool to terminate org.apache.activemq.artemis.utils.ActiveMQThreadPoolExecutor@2b4c9b82[Shutting down, pool size = 2, active threads = 2, queued tasks = 0, completed tasks = 8341]. Interrupting all its threads!
      09:45:41,574 INFO  [org.apache.activemq.artemis.core.server] AMQ221002: Apache ActiveMQ Artemis Message Broker version 2.0.0.amq-700011-redhat-1 [b89a1698-8bca-11e7-9633-525400ae19ff] stopped, uptime 1 minute
      

      and Live broker stopped. If one start Live broker manually again it stays operational even if Backup is down.
      Q. Why it should be stopped at all?
      Q. Is it expected behavior?

              mtaylor1@redhat.com Martyn Taylor (Inactive)
              dpuzikov_jira Dmitrii Puzikov (Inactive)
              Jiri Daněk Jiri Daněk
              Votes:
              0 Vote for this issue
              Watchers:
              7 Start watching this issue

                Created:
                Updated:
                Resolved: