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

ASF subversion and git services commented on QPID-5735:
-------------------------------------------------------

Commit 1591183 from [~astitcher] in branch 'qpid/trunk'
[ https://svn.apache.org/r1591183 ]

QPID-5735: Correct calculation of amqp.redelivered

> The Selector property amqp.redelivered is not computed correctly
> ----------------------------------------------------------------
>
>                 Key: QPID-5735
>                 URL: https://issues.apache.org/jira/browse/QPID-5735
>             Project: Qpid
>          Issue Type: Bug
>            Reporter: Andrew Stitcher
>            Assignee: Andrew Stitcher
>
> Due to the fix for QPID-4668. The delivery-count held by a queued message is 
> now off by 1 such that redelivered should actually be delivery-count>=0. This 
> is because the count will be adjusted after the selector runs but before any 
> actual delivery.
> You can replicate this with qpid-send/qpid-receive:
> {code}
> qpid-send -a "q; {create:always}" 
> {code}
> Then get message without acknowledging:
> {code}
> qpid-receive -a q --print-headers yes --ack 0
> {code}
> [One message is received with no Redelivered header]
> now get message with selector
> {code}
> qpid-receive -a "q; {link:{selector:amqp.redelivered=true}" --print-headers 
> yes --ack 0
> {code}
> [No messages are received even though there is a redelivered message]



--
This message was sent by Atlassian JIRA
(v6.2#6252)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to