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

Andy Goldstein commented on QPID-3481:
--------------------------------------

To give a little more context: our application uses a Receiver w/capacity > 0 
to pull messages from a queue.  These messages are acquired (but not 
immediately acked), transmitted to an external system, and this transmission 
may fail.  If the transmission fails (exception), we catch it and close the 
receiver, which deletes the queue.  The queue has an alternate exchange, and we 
need all messages to be routed to it.

I believe we're modifying our catch block now to release acquired messages 
prior to closing the receiver, but I don't believe that will fix the message 
loss issue without some sort of patch.

> Acquired messages are not sent to alternate exchange when queue is deleted 
> and receiver's session closed
> --------------------------------------------------------------------------------------------------------
>
>                 Key: QPID-3481
>                 URL: https://issues.apache.org/jira/browse/QPID-3481
>             Project: Qpid
>          Issue Type: Bug
>          Components: C++ Broker
>            Reporter: Andy Goldstein
>         Attachments: QPID-3481.diff
>
>
> Currently, the broker will lose messages in the following scenario:
> 1. Client creates receiver to a queue (queue has an alternate exchange 
> configured)
> 2. Client acquires message from queue
> 3. Client closes receiver (with delete:always or delete:receiver)
> 4. Client closes session
> We expect that the messages should be sent to the now-deleted queue's 
> alternate exchange if/when they are released.
> Messages are not sent to the alternate exchange immediately upon closure of 
> the receiver because the client still has acquired messages; this is fine, 
> but when the client either releases the messages or closes the session, these 
> messages should be sent to the alternate exchange.

--
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:[email protected]

Reply via email to