[
https://issues.apache.org/jira/browse/QPID-5866?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Pavel Moravec updated QPID-5866:
--------------------------------
Description:
Having a C++ AMQP 1.0 consumer with prefetch and closing its session without
closing receiver first, the client does not send back to the broker disposition
about unconsumed messages (that were buffered by the client due to prefetch but
not offered to the application).
This causes next consumer to get messages with redelivered flag enabled /
delivery count incremented.
Reproducer:
{code}
$ qpid-send --messages 3 --address "q;{create:sender}"
$ qpid-receive --connection-options {protocol:amqp1.0} --print-headers true
--messages 1 --address q
Properties: {sn:1, ts:1395841514445073615}
$ qpid-receive --connection-options {protocol:amqp1.0} --print-headers true
--messages 1 --address q
Redelivered: true
Properties: {sn:2, ts:1395841514445244860, x-amqp-delivery-count:1}
$
{code}
was:
Having a C++ AMQP 1.0 consumer with prefetch and closing its session without
closing receiver first, the client does not send back to the broker disposition
about unconsumed messages (that were buffered by the client due to prefetch but
not offered to the application).
This causes next consumer to get messages with redelivered flag enabled /
delivery count incremented.
Reproducer:
$ qpid-send --messages 3 --address "q;{create:sender}"
$ qpid-receive --connection-options {protocol:amqp1.0} --print-headers true
--messages 1 --address q
Properties: {sn:1, ts:1395841514445073615}
$ qpid-receive --connection-options {protocol:amqp1.0} --print-headers true
--messages 1 --address q
Redelivered: true
Properties: {sn:2, ts:1395841514445244860, x-amqp-delivery-count:1}
$
> [C++ client] AMQP 1.0 closing session without closing receiver first marks
> further messages as redelivered
> ----------------------------------------------------------------------------------------------------------
>
> Key: QPID-5866
> URL: https://issues.apache.org/jira/browse/QPID-5866
> Project: Qpid
> Issue Type: Bug
> Components: C++ Client
> Affects Versions: 0.28
> Reporter: Pavel Moravec
> Assignee: Pavel Moravec
> Priority: Minor
> Fix For: Future
>
>
> Having a C++ AMQP 1.0 consumer with prefetch and closing its session without
> closing receiver first, the client does not send back to the broker
> disposition about unconsumed messages (that were buffered by the client due
> to prefetch but not offered to the application).
> This causes next consumer to get messages with redelivered flag enabled /
> delivery count incremented.
> Reproducer:
> {code}
> $ qpid-send --messages 3 --address "q;{create:sender}"
> $ qpid-receive --connection-options {protocol:amqp1.0} --print-headers true
> --messages 1 --address q
> Properties: {sn:1, ts:1395841514445073615}
> $ qpid-receive --connection-options {protocol:amqp1.0} --print-headers true
> --messages 1 --address q
> Redelivered: true
> Properties: {sn:2, ts:1395841514445244860, x-amqp-delivery-count:1}
> $
> {code}
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]