qpid-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Gordon Sim (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (QPID-3502) Durable messages not acked on queue-based federation route
Date Fri, 23 Sep 2011 12:24:26 GMT

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

Gordon Sim commented on QPID-3502:
----------------------------------

I believe this can be fixed by the following change (and suspect it may be a regression):

{noformat}
Index: src/qpid/broker/SessionState.cpp
===================================================================
--- src/qpid/broker/SessionState.cpp	(revision 1166820)
+++ src/qpid/broker/SessionState.cpp	(working copy)
@@ -346,7 +346,7 @@
     }
 
     // if the sender has requested immediate notification of the completion...
-    if (requiresSync) {
+    if (requiresSync || (requiresAccept && callSendCompletion)) {
         sendAcceptAndCompletion();
     } else if (callSendCompletion) {
         sendCompletion();
{noformat}

> Durable messages not acked on queue-based federation route
> ----------------------------------------------------------
>
>                 Key: QPID-3502
>                 URL: https://issues.apache.org/jira/browse/QPID-3502
>             Project: Qpid
>          Issue Type: Bug
>          Components: C++ Broker
>    Affects Versions: 0.12
>            Reporter: Gordon Sim
>
> - On both the source and destination broker I run:
>     qpid-config add exchange topic mytopic --durable
>     qpid-config add queue myq --durable
>     qpid-config bind mytopic myq 'topica.*'
> - On the destination broker I run:
>     qpid-route -d -s --ack 1 queue add <dest-broker> <source-broker> mytopic
myq
> - On the source broker machine I edit the spout script to make
> messages durable and run:
>     spout mytopic/topica.hello
> - On the destination broker I run:
>     drain myq
> Using qpid-stat -q monitor the dequeue of messages. Durable messages are not dequeued,
when a transient message is sent all previous messages will be dequeued.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
Apache Qpid - AMQP Messaging Implementation
Project:      http://qpid.apache.org
Use/Interact: mailto:dev-subscribe@qpid.apache.org


Mime
View raw message