Receiving connection failure exception using artemis producer cli while testing HA failover

Solution Unverified - Updated -

Issue

  • Conducting failover testing against 2 master/slave pairs configured for HA and sending messages using CLI producer like
./bin/artemis producer --message-count 50000 --url "tcp://localhost:61616?retryInterval=1000&retryIntervalMultiplier=1.5&maxRetryInterval=60000&reconnectAttempts=30" --destination queue://test.queue --user admin --password admin --verbose --text-size 50  

The following error is thrown when the broker it's connected to is killed.

javax.jms.JMSException: AMQ119016: Connection failure detected. Unblocking a blocking call that will never get a response
        at org.apache.activemq.artemis.core.protocol.core.impl.ChannelImpl.sendBlocking(ChannelImpl.java:423)
        at org.apache.activemq.artemis.core.protocol.core.impl.ChannelImpl.sendBlocking(ChannelImpl.java:319)
        at org.apache.activemq.artemis.core.protocol.core.impl.ActiveMQSessionContext.sendFullMessage(ActiveMQSessionContext.java:479)
        at org.apache.activemq.artemis.core.client.impl.ClientProducerImpl.sendRegularMessage(ClientProducerImpl.java:304)
  • The java JMS request-reply example under the AMQ 7.2 examples and specify the above url and run it, i see a warning in the logs when i kill the broker it's connected to but it manages to re-connect to another live broker and continue sending messages.

Environment

  • Red Hat AMQ
    • 7.2.0

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content