qpid-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Andrew Stitcher (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (QPID-5735) The Selector property amqp.redelivered is not computed correctly
Date Thu, 01 May 2014 01:41:41 GMT

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

Andrew Stitcher commented on QPID-5735:

To answer the earlier question the "delivery-count" message header really counts *previous*
message deliveries, however I don't think it is exposed to the messaging API anyway in the
client or via selectors.

> 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
>    Affects Versions: 0.22
>            Reporter: Andrew Stitcher
>            Assignee: Andrew Stitcher
>             Fix For: 0.29
> 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
> {code}
> [No messages are received even though there is a redelivered message]

This message was sent by Atlassian JIRA

To unsubscribe, e-mail: dev-unsubscribe@qpid.apache.org
For additional commands, e-mail: dev-help@qpid.apache.org

View raw message