Miroslav Novak created ARTEMIS-242:
--------------------------------------

             Summary: IllegalStateException thrown during producer.send()
                 Key: ARTEMIS-242
                 URL: https://issues.apache.org/jira/browse/ARTEMIS-242
             Project: ActiveMQ Artemis
          Issue Type: Bug
    Affects Versions: 1.1.0
            Reporter: Miroslav Novak


Sometimes happens that during failback JMS producer can get 
java.lang.IllegalStateException during producer.send(message):
{code}
java.lang.IllegalStateException: Cannot send a packet while channel is doing 
failover
        at 
org.apache.activemq.artemis.core.protocol.core.impl.ChannelImpl.send(ChannelImpl.java:242)
        at 
org.apache.activemq.artemis.core.protocol.core.impl.ChannelImpl.send(ChannelImpl.java:201)
        at 
org.apache.activemq.artemis.core.protocol.core.impl.ActiveMQSessionContext.sendInitialChunkOnLargeMessage(ActiveMQSessionContext.java:358)
        at 
org.apache.activemq.artemis.core.client.impl.ClientProducerImpl.sendInitialLargeMessageHeader(ClientProducerImpl.java:339)
        at 
org.apache.activemq.artemis.core.client.impl.ClientProducerImpl.largeMessageSendStreamed(ClientProducerImpl.java:518)
        at 
org.apache.activemq.artemis.core.client.impl.ClientProducerImpl.largeMessageSendBuffered(ClientProducerImpl.java:414)
        at 
org.apache.activemq.artemis.core.client.impl.ClientProducerImpl.largeMessageSend(ClientProducerImpl.java:333)
        at 
org.apache.activemq.artemis.core.client.impl.ClientProducerImpl.doSend(ClientProducerImpl.java:263)
        at 
org.apache.activemq.artemis.core.client.impl.ClientProducerImpl.send(ClientProducerImpl.java:124)
        at 
org.apache.activemq.artemis.jms.client.ActiveMQMessageProducer.doSendx(ActiveMQMessageProducer.java:476)
        at 
org.apache.activemq.artemis.jms.client.ActiveMQMessageProducer.send(ActiveMQMessageProducer.java:172)
        at 
org.jboss.qa.hornetq.apps.clients.ProducerClientAck.sendMessage(ProducerClientAck.java:174)
        at 
org.jboss.qa.hornetq.apps.clients.ProducerClientAck.run(ProducerClientAck.java:116)
{code}

This happened if failback-delay was set to 10s. There were 2 servers configured 
configured in dedicated HA topology with shared store.

IllegalStateException should be never thrown from producer.send().



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to