activemq-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Timothy Bish (JIRA)" <>
Subject [jira] [Commented] (AMQ-3816) Broker does not retain messages for a STOMP durable consumer if the broker restarts while the consumer was running
Date Tue, 24 Apr 2012 18:31:34 GMT


Timothy Bish commented on AMQ-3816:

What could be happening here is that your consumer is using an ack mode of auto, and the broker
has sent the consumer all the pending messages because its prefetch limit has not been set.
 You should try setting the prefetch limit to 1, or using client ack.  
> Broker does not retain messages for a STOMP durable consumer if the broker restarts while
the consumer was running
> ------------------------------------------------------------------------------------------------------------------
>                 Key: AMQ-3816
>                 URL:
>             Project: ActiveMQ
>          Issue Type: Bug
>          Components: Broker, stomp
>    Affects Versions: 5.5.1
>         Environment: Perl STOMP clients on UNIX OS.
>            Reporter: Buchi Reddy B
> We have noticed that the broker does not deliver some messages to a durable consumer
in the following scenario.
> 1/ Start ActiveMQ broker, Perl STOMP producer on topics with persistence and Perl STOMP
consumer with durable topics.
> 2/ Kill the broker while the consumer and producer are running.
> 3/ Kill the consumer. We have kept the producer running all these while.
> 4/ Restart the broker and producer will connect to it and continue to send the messages.
> 5/ Restart the consumer. We have noticed that the consumer was missing big chunk of messages
sent by the producer when the consumer was down. But, we expect the consumer to receive these
messages since it's a durable consumer and did not unsubscribe from these topics.
> I have enabled TRACE level logging for the broker and checked that the broker is recovering
the durable subscription information from the kaha db logs when it restarts and marks the
durable consumer as inactive durable subscription. However, broker does not seem to retain
the messages for this durable consumer until the consumer comes up again.
> Is this expected? Does not broker guarantee message redelivery for durable consumers
when the broker itself restarts?
> Please let me know if we have any configurations on the broker/client side to avoid these
kind of issues.

This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:!default.jspa
For more information on JIRA, see:


View raw message