activemq-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Andreas Mattes (JIRA)" <>
Subject [jira] [Updated] (AMQ-3961) Durable subscriber only receives part of the persisted messages on re-connect
Date Tue, 14 Aug 2012 14:51:38 GMT


Andreas Mattes updated AMQ-3961:


Find attached the following two tests demonstrating the issue:

# "" contains a unit test which re-plays the interaction with
the "DurableTopicSubscription" which leads to the issue with undispatched messages. Collaborating
classes are partly mocked and simplified (e.g. transactions).
# "" is implemented as JUnit TestCase, but not a unit test and requires an
ActiveMQ server to be running at "tcp://localhost:61616". It shows the issue from JMS API
> Durable subscriber only receives part of the persisted messages on re-connect
> -----------------------------------------------------------------------------
>                 Key: AMQ-3961
>                 URL:
>             Project: ActiveMQ
>          Issue Type: Bug
>          Components: Connector
>    Affects Versions: 5.6.0
>         Environment: Default configuraton of ActiveMQ under Linux or Windows
>            Reporter: Andreas Mattes
>         Attachments: PrefetchSubscription.patch,,
> A durable subscriber is connected to ActiveMQ using the ConnectionConsumer protocol,
transacted sessions, and at most 1 message per session. While the subscriber is disconnected,
the publisher publishes e.g. 10 messages. When the subscriber re-connects, it only receives
2 messages of those. If it repeatedly disconnects and re-connects, it receives 2 messages
each time until all messages are received.
> Further investigation reveals that the problem lies in class
which does not re-check for further pending messages to be dispatched when committed message
are removed from the list of dispatched but not yet acknowledged messages.

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