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

Colocated-failover example fails to run properly

    XMLWordPrintable

Details

    • Bug
    • Resolution: Cannot Reproduce
    • Normal
    • None
    • AMQ 7.11.4.GA
    • clustering
    • None
    • False
    • None
    • False
    • Moderate

    Description

      The example examples/features/ha/colocated-failover fails to run properly.

      Steps to reproduce
      -------------------

      • Run mvn verify under folder examples/features/ha/colocated-failover

      Result:

      Sent message: This is text message 0
      Sent message: This is another text message 0
      Sent message: This is text message 1
      Sent message: This is another text message 1
      Sent message: This is text message 2
      Sent message: This is another text message 2
      Sent message: This is text message 3
      Sent message: This is another text message 3
      Sent message: This is text message 4
      Sent message: This is another text message 4
      Sent message: This is text message 5
      Sent message: This is another text message 5
      Sent message: This is text message 6
      Sent message: This is another text message 6
      Sent message: This is text message 7
      Sent message: This is another text message 7
      Sent message: This is text message 8
      Sent message: This is another text message 8
      Sent message: This is text message 9
      Sent message: This is another text message 9
      Sent message: This is text message 10
      Sent message: This is another text message 10
      Sent message: This is text message 11
      Sent message: This is another text message 11
      Sent message: This is text message 12
      Sent message: This is another text message 12
      Sent message: This is text message 13
      Sent message: This is another text message 13
      Sent message: This is text message 14
      Sent message: This is another text message 14
      Sent message: This is text message 15
      Sent message: This is another text message 15
      Sent message: This is text message 16
      Sent message: This is another text message 16
      Sent message: This is text message 17
      Sent message: This is another text message 17
      Sent message: This is text message 18
      Sent message: This is another text message 18
      Sent message: This is text message 19
      Sent message: This is another text message 19
      Sent message: This is text message 20
      Sent message: This is another text message 20
      Sent message: This is text message 21
      Sent message: This is another text message 21
      Sent message: This is text message 22
      Sent message: This is another text message 22
      Sent message: This is text message 23
      Sent message: This is another text message 23
      Sent message: This is text message 24
      Sent message: This is another text message 24
      Sent message: This is text message 25
      Sent message: This is another text message 25
      Sent message: This is text message 26
      Sent message: This is another text message 26
      Sent message: This is text message 27
      Sent message: This is another text message 27
      Sent message: This is text message 28
      Sent message: This is another text message 28
      Sent message: This is text message 29
      ColocatedFailoverExample1-out:2023-11-15 11:03:04,312 INFO  [org.apache.activemq.artemis.core.server] AMQ221066: Initiating quorum vote: RequestBackupQuorumVote
      ColocatedFailoverExample1-out:2023-11-15 11:03:04,316 INFO  [org.apache.activemq.artemis.core.server] AMQ221084: Requested 0 quorum votes
      Sent message: This is another text message 29
      **********************************
      Killing server Process[pid=81802, exitValue="not exited"]
      **********************************
      [WARNING] AMQ212037: Connection failure to localhost/127.0.0.1:61616 has been detected: AMQ219015: The connection was disconnected because of server shutdown [code=DISCONNECTED]
      ColocatedFailoverExample1-out:2023-11-15 11:03:06,317 INFO  [org.apache.activemq.artemis.core.server] AMQ221066: Initiating quorum vote: RequestBackupQuorumVote
      
      Followed by a the following message repeated several times
      
      ColocatedFailoverExample1-out:2023-11-15 11:03:06,318 INFO  [org.apache.activemq.artemis.core.server] AMQ221084: Requested 0 quorum votes
      
      followed by:
      
      **********************************
      Killing server Process[pid=81802, exitValue=143]
      **********************************
      ColocatedFailoverExample1-out:2023-11-15 11:04:46,537 INFO  [org.apache.activemq.artemis.core.server] AMQ221066: Initiating quorum vote: RequestBackupQuorumVote
      ColocatedFailoverExample1-out:2023-11-15 11:04:46,538 INFO  [org.apache.activemq.artemis.core.server] AMQ221084: Requested 0 quorum votes
      **********************************
      Killing server Process[pid=81818, exitValue="not exited"]
      **********************************
      [ERROR]
      java.lang.reflect.InvocationTargetException
          at jdk.internal.reflect.DirectMethodHandleAccessor.invoke (DirectMethodHandleAccessor.java:119)
          at java.lang.reflect.Method.invoke (Method.java:577)
          at org.apache.activemq.artemis.maven.ArtemisClientPlugin.doExecute (ArtemisClientPlugin.java:86)
          at org.apache.activemq.artemis.maven.ArtemisAbstractPlugin.execute (ArtemisAbstractPlugin.java:80)
          at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo (DefaultBuildPluginManager.java:137)
          at org.apache.maven.lifecycle.internal.MojoExecutor.doExecute2 (MojoExecutor.java:370)
          at org.apache.maven.lifecycle.internal.MojoExecutor.doExecute (MojoExecutor.java:351)
          at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:215)
          at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:171)
          at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:163)
          at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:117)
          at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:81)
          at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build (SingleThreadedBuilder.java:56)
          at org.apache.maven.lifecycle.internal.LifecycleStarter.execute (LifecycleStarter.java:128)
          at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:294)
          at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:192)
          at org.apache.maven.DefaultMaven.execute (DefaultMaven.java:105)
          at org.apache.maven.cli.MavenCli.execute (MavenCli.java:960)
          at org.apache.maven.cli.MavenCli.doMain (MavenCli.java:293)
          at org.apache.maven.cli.MavenCli.main (MavenCli.java:196)
          at jdk.internal.reflect.DirectMethodHandleAccessor.invoke (DirectMethodHandleAccessor.java:104)
          at java.lang.reflect.Method.invoke (Method.java:577)
          at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced (Launcher.java:282)
          at org.codehaus.plexus.classworlds.launcher.Launcher.launch (Launcher.java:225)
          at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode (Launcher.java:406)
          at org.codehaus.plexus.classworlds.launcher.Launcher.main (Launcher.java:347)
      Caused by: javax.jms.JMSException: AMQ219014: Timed out after waiting 30000 ms for response when sending packet 49
          at org.apache.activemq.artemis.core.protocol.core.impl.ChannelImpl.sendBlocking (ChannelImpl.java:550)
          at org.apache.activemq.artemis.core.protocol.core.impl.ChannelImpl.sendBlocking (ChannelImpl.java:452)
          at org.apache.activemq.artemis.core.protocol.core.impl.ActiveMQSessionContext.addressQuery (ActiveMQSessionContext.java:434)
          at org.apache.activemq.artemis.core.client.impl.ClientSessionImpl.addressQuery (ClientSessionImpl.java:803)
          at org.apache.activemq.artemis.utils.AutoCreateUtil.autoCreateQueue (AutoCreateUtil.java:40)
          at org.apache.activemq.artemis.jms.client.ActiveMQSession.createConsumer (ActiveMQSession.java:812)
          at org.apache.activemq.artemis.jms.client.ActiveMQSession.createConsumer (ActiveMQSession.java:481)
          at org.apache.activemq.artemis.jms.client.ActiveMQSession.createConsumer (ActiveMQSession.java:453)
          at org.apache.activemq.artemis.jms.example.ColocatedFailoverExample.main (ColocatedFailoverExample.java:118)
          at jdk.internal.reflect.DirectMethodHandleAccessor.invoke (DirectMethodHandleAccessor.java:104)
          at java.lang.reflect.Method.invoke (Method.java:577)
          at org.apache.activemq.artemis.maven.ArtemisClientPlugin.doExecute (ArtemisClientPlugin.java:86)
          at org.apache.activemq.artemis.maven.ArtemisAbstractPlugin.execute (ArtemisAbstractPlugin.java:80)
          at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo (DefaultBuildPluginManager.java:137)
          at org.apache.maven.lifecycle.internal.MojoExecutor.doExecute2 (MojoExecutor.java:370)
          at org.apache.maven.lifecycle.internal.MojoExecutor.doExecute (MojoExecutor.java:351)
          at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:215)
          at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:171)
          at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:163)
          at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:117)
          at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:81)
          at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build (SingleThreadedBuilder.java:56)
          at org.apache.maven.lifecycle.internal.LifecycleStarter.execute (LifecycleStarter.java:128)
          at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:294)
          at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:192)
          at org.apache.maven.DefaultMaven.execute (DefaultMaven.java:105)
          at org.apache.maven.cli.MavenCli.execute (MavenCli.java:960)
          at org.apache.maven.cli.MavenCli.doMain (MavenCli.java:293)
          at org.apache.maven.cli.MavenCli.main (MavenCli.java:196)
          at jdk.internal.reflect.DirectMethodHandleAccessor.invoke (DirectMethodHandleAccessor.java:104)
          at java.lang.reflect.Method.invoke (Method.java:577)
          at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced (Launcher.java:282)
          at org.codehaus.plexus.classworlds.launcher.Launcher.launch (Launcher.java:225)
          at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode (Launcher.java:406)
          at org.codehaus.plexus.classworlds.launcher.Launcher.main (Launcher.java:347)
      Caused by: org.apache.activemq.artemis.api.core.ActiveMQConnectionTimedOutException: AMQ219014: Timed out after waiting 30000 ms for response when sending packet 49
          at org.apache.activemq.artemis.core.protocol.core.impl.ChannelImpl.sendBlocking (ChannelImpl.java:550)
          at org.apache.activemq.artemis.core.protocol.core.impl.ChannelImpl.sendBlocking (ChannelImpl.java:452)
          at org.apache.activemq.artemis.core.protocol.core.impl.ActiveMQSessionContext.addressQuery (ActiveMQSessionContext.java:434)
          at org.apache.activemq.artemis.core.client.impl.ClientSessionImpl.addressQuery (ClientSessionImpl.java:803)
          at org.apache.activemq.artemis.utils.AutoCreateUtil.autoCreateQueue (AutoCreateUtil.java:40)
          at org.apache.activemq.artemis.jms.client.ActiveMQSession.createConsumer (ActiveMQSession.java:812)
          at org.apache.activemq.artemis.jms.client.ActiveMQSession.createConsumer (ActiveMQSession.java:481)
          at org.apache.activemq.artemis.jms.client.ActiveMQSession.createConsumer (ActiveMQSession.java:453)
          at org.apache.activemq.artemis.jms.example.ColocatedFailoverExample.main (ColocatedFailoverExample.java:118)
          at jdk.internal.reflect.DirectMethodHandleAccessor.invoke (DirectMethodHandleAccessor.java:104)
          at java.lang.reflect.Method.invoke (Method.java:577)
          at org.apache.activemq.artemis.maven.ArtemisClientPlugin.doExecute (ArtemisClientPlugin.java:86)
          at org.apache.activemq.artemis.maven.ArtemisAbstractPlugin.execute (ArtemisAbstractPlugin.java:80)
          at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo (DefaultBuildPluginManager.java:137)
          at org.apache.maven.lifecycle.internal.MojoExecutor.doExecute2 (MojoExecutor.java:370)
          at org.apache.maven.lifecycle.internal.MojoExecutor.doExecute (MojoExecutor.java:351)
          at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:215)
          at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:171)
          at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:163)
          at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:117)
          at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:81)
          at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build (SingleThreadedBuilder.java:56)
          at org.apache.maven.lifecycle.internal.LifecycleStarter.execute (LifecycleStarter.java:128)
          at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:294)
          at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:192)
          at org.apache.maven.DefaultMaven.execute (DefaultMaven.java:105)
          at org.apache.maven.cli.MavenCli.execute (MavenCli.java:960)
          at org.apache.maven.cli.MavenCli.doMain (MavenCli.java:293)
          at org.apache.maven.cli.MavenCli.main (MavenCli.java:196)
          at jdk.internal.reflect.DirectMethodHandleAccessor.invoke (DirectMethodHandleAccessor.java:104)
          at java.lang.reflect.Method.invoke (Method.java:577)
          at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced (Launcher.java:282)
          at org.codehaus.plexus.classworlds.launcher.Launcher.launch (Launcher.java:225)
          at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode (Launcher.java:406)
          at org.codehaus.plexus.classworlds.launcher.Launcher.main (Launcher.java:347)
      [INFO] ------------------------------------------------------------------------
      [INFO] BUILD FAILURE
      [INFO] ------------------------------------------------------------------------
      [INFO] Total time:  01:52 min
      [INFO] Finished at: 2023-11-15T11:04:47-06:00
      [INFO] ------------------------------------------------------------------------
      [ERROR] Failed to execute goal org.apache.activemq:artemis-maven-plugin:2.28.0.redhat-00012:runClient (runClient) on project colocated-failover: null: MojoFailureException -> [Help 1]
      [ERROR]
      [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
      [ERROR] Re-run Maven using the -X switch to enable full debug logging.
      [ERROR]
      [ERROR] For more information about the errors and possible solutions, please read the following articles:
      [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException

      Attachments

        Activity

          People

            Unassigned Unassigned
            rhn-support-abelkour Mohamed Amine Belkoura
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: