You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@qpid.apache.org by "Alan Conway (JIRA)" <ji...@apache.org> on 2012/10/24 16:36:12 UTC

[jira] [Resolved] (QPID-4391) HA replicating subscriptions should not auto-delete queues

     [ https://issues.apache.org/jira/browse/QPID-4391?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Alan Conway resolved QPID-4391.
-------------------------------

       Resolution: Fixed
    Fix Version/s: 0.19

Fixed  on trunk, 2 commits:

------------------------------------------------------------------------
r1401711 | aconway | 2012-10-24 10:33:25 -0400 (Wed, 24 Oct 2012) | 11 lines

Bug:868364 - QPID-4391: HA ignore stale responses.

Related issue discovered while fixing this bug:

The BrokerReplicater pulls management events and query responses from different
queues, there is no co-ordination between them. If a response is processed late,
after create and delete events, it will incorrectly re-create the deleted queue.

This patch ignores responses if we have already seen an event for the queue or
exchange.
------------------------------------------------------------------------
r1401709 | aconway | 2012-10-24 10:33:09 -0400 (Wed, 24 Oct 2012) | 12 lines

Bug 868364 - QPID-4391: HA replicating subscriptions should not auto-delete queues

When an auto-delete queue is replicated, the replicating subscription attempts
to auto-delete the queue after it has already been auto-deleted by the closing
of the last non-HA consumer.  An issue occurs if a new auto-delete queue with
the same name is created shortly after the deletion of the previously queue.
This can occur when a client subscribes to an auto-delete queue and is
temporarily disconnected from the broker.  It is possible for the cancelled HA
subscription to remove the newly created queue from the queue registry since the
old and new queues use the same names.  The HA replicating subscription should
not execute the auto-delete logic when the subscription is cancelled.

------------------------------------------------------------------------

                
> HA replicating subscriptions should not auto-delete queues
> ----------------------------------------------------------
>
>                 Key: QPID-4391
>                 URL: https://issues.apache.org/jira/browse/QPID-4391
>             Project: Qpid
>          Issue Type: Bug
>            Reporter: Alan Conway
>             Fix For: 0.19
>
>
> Description of problem:
> When an auto-delete queue is replicated, the replicating subscription attempts to auto-delete the queue after it has already been auto-deleted by the closing of the last non-HA consumer.  An issue occurs if a new auto-delete queue with the same name is created shortly after the deletion of the previously queue.  This can occur when a client subscribes to an auto-delete queue and is temporarily disconnected from the broker.  It is possible for the cancelled HA subscription to remove the newly created queue from the queue registry since the old and new queues use the same names.  The HA replicating subscription should not execute the auto-delete logic when the subscription is cancelled. 
> Version-Release number of selected component (if applicable):
> Qpid 0.18
> How reproducible:
> Frequently
> Steps to Reproduce:
> Race condition between a consumer auto-deleting and recreating a queue of the same name and the HA replicating subscription auto-deleting the original queue.  If the HA replicating subscription auto-deletes the original queue after the new queue is created, the new queue is removed from the queue registry.
>   
> Actual results:
> New queue is removed from the queue registry.
> Expected results:
> HA subscription does not attempt to auto-delete the queue and therefore the new queue is not removed from the queue registry.
> Additional info: https://bugzilla.redhat.com/show_bug.cgi?id=868364

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

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