Description
Hi,
While testing AMQCPP-355, we came across a problem when resuming from a broker restart. Resuming seems to be erratic when the broker shutdown happens during message processing in an onMessage callback.
a) if a message is ack'ed while the broker is still down, the same message will be redelivered after connection resumes. The command tracing does not show the sending of the 1st acknowledgment.
b) if a message is ack'ed after the broker is brought back (connection resumed OK), the command tracing shows that the ack is send, but on the broker side we see an warning message:
WARN | Ignoring ack received before dispatch; result of failover with an outstanding ack. Acked messages will be replayed if present on this broker.
Ignored ack: MessageAck
We can't see any redelivery message in the command trace and subsequent messages are not delivered either. The consumer is nevertheless shown on broker admin console.
When the connection is resumed, we see that the prefetch size is set to 0 in the consumerInfo message.
c) resuming works fine, if the message is not in process when the shutdown happens.
Cases a+b work fine, when we tried to reproduce with a java client from the ActiveMQ examples dir.
Regards,
Chris
Attachments
Issue Links
- relates to
-
AMQCPP-364 Dont perform two phase consumer recover when openwire version is not six or higher
- Resolved