[ 
https://issues.apache.org/jira/browse/AMQ-7071?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16647865#comment-16647865
 ] 

Christopher L. Shannon commented on AMQ-7071:
---------------------------------------------

Commit is here: 
https://git-wip-us.apache.org/repos/asf?p=activemq.git;a=commit;h=3ac3a420a14b9209222568d7c361855157467163

Not sure why it is not being linked automatically

> Messages not marked as redelivered when durable connection closed improperly
> ----------------------------------------------------------------------------
>
>                 Key: AMQ-7071
>                 URL: https://issues.apache.org/jira/browse/AMQ-7071
>             Project: ActiveMQ
>          Issue Type: Improvement
>    Affects Versions: 5.15.6
>            Reporter: Christopher L. Shannon
>            Assignee: Christopher L. Shannon
>            Priority: Minor
>             Fix For: 5.16.0
>
>
> I noticed that if a connection is killed improperly (using kill -9 or network 
> failure, etc) any prefetched messages for a durable subscription are not 
> marked as redelivered because the logic on the broker does not check for the 
> LAST_DELIVERED_UNKNOWN status (-2). 
> However, when a queue subscription is closed improperly this flag does get 
> checked.  I think for the durable subscription case we should do the same 
> thing  (match the queue logic) and be checking and marking these messages 
> that were already dispatched but have an unknown status with the JMS 
> redelivery flag as they might potentially be duplicates to the client when 
> the client reconnects.  The spec just says the flag means messages may have 
> been redelivered but there is no guarantee so I think it's fine to mark the 
> flag in this use case.
> As a side note this is how Artemis behaves already.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to