activemq-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Timothy Bish (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (APLO-344) Ack removes more than one message from the queue
Date Sun, 15 Dec 2013 23:04:07 GMT

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

Timothy Bish commented on APLO-344:
-----------------------------------

What mode does your client subscribe with, if it's 'client' then it's working just as expected.
 Refer to the STOMP specification for clarification on what the modes are:

http://stomp.github.io/stomp-specification-1.2.html#SUBSCRIBE_ack_Header

> Ack removes more than one message from the queue
> ------------------------------------------------
>
>                 Key: APLO-344
>                 URL: https://issues.apache.org/jira/browse/APLO-344
>             Project: ActiveMQ Apollo
>          Issue Type: Bug
>          Components: apollo-stomp
>    Affects Versions: 1.6
>            Reporter: Kirill Titov
>
> For example
> $queueName = '/queue/test';
> $queue->send(1, $queueName);
> $queue->send(2, $queueName);
> $queue->send(3, $queueName);
> $queue->send(4, $queueName);
> $queue->send(5, $queueName);
> $queue->subscribe($queueName);
> while ($message = $queue->readFrame()) {
>     if ($message['body'] == 3) {
>         $queue->ack($message);
>     }
> }
> It removes not only message 3, but also 4 and 5. If I ack message 2, it will remove 2,
3, 4 and 5 and so on. How is it possible?



--
This message was sent by Atlassian JIRA
(v6.1.4#6159)

Mime
View raw message