qpid-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Robbie Gemmell (JIRA)" <j...@apache.org>
Subject [jira] [Resolved] (QPID-2096) ExchangeRegistration shoud NOT automatically add durable Exchanges to messageStore
Date Tue, 07 Jun 2011 15:31:59 GMT

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

Robbie Gemmell resolved QPID-2096.
----------------------------------

    Resolution: Fixed

Closing out old issue.

> ExchangeRegistration shoud NOT automatically add durable Exchanges to messageStore
> ----------------------------------------------------------------------------------
>
>                 Key: QPID-2096
>                 URL: https://issues.apache.org/jira/browse/QPID-2096
>             Project: Qpid
>          Issue Type: Bug
>          Components: Java Broker
>    Affects Versions: M4, 0.5, 0.6
>            Reporter: Martin Ritchie
>            Assignee: Robbie Gemmell
>            Priority: Blocker
>             Fix For: 0.6
>
>         Attachments: QPID-2096_trunk.patch
>
>
> Summary:
> DefaultExchangeRegistry.registerExchange() has a side effect of calling messageStore.createExchange.
> This behaviour is unexpected as DefaultQueueRegistry does not do the same for queues.
> The problem that this has is that on MessageStore recovery the recovered exchanges will
be registered. Which after the MessageStore has been recovered will cause  createExchange
to be called. The problem here is that the createExchange interface is not designed to cope
with duplicates. Something that Derby highlights as it throws primary key constraint violation
error.
> The solution is to decouple register and create as has been done with queues. This has
not previously been seen as a) the Derby test profile is not run as often and b) the configuration
used did not have an additional durable exchange defined.

--
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