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

Martin Ritchie commented on QPID-1275:
--------------------------------------

There is code in the client to detect when a subscription changes however the 
test makes a new fresh connection so is unaware that there is an existing 
subscription.

The broker however is aware of the existing subscription and does not recognise 
the new durable subscription as a replacement. Hence we end up with the topic 
being bound twice. 

> Changing a DurableSubscriber's Selector does not remove the old binding
> -----------------------------------------------------------------------
>
>                 Key: QPID-1275
>                 URL: https://issues.apache.org/jira/browse/QPID-1275
>             Project: Qpid
>          Issue Type: Bug
>          Components: Java Broker, Java Client
>    Affects Versions: M3, M4
>            Reporter: Martin Ritchie
>
> This can be evidenced with the BDBMessageStore (DerbyMessageStore upgrade 
> still pending)
> BDBUpgradeTest.testDurabilitySelectors
> On recovery there are two binding values for the Durable Subscriber:
> main 2008-09-05 15:01:43,801 INFO [server.store.berkeleydb.BDBMessageStore] 
> Restoring binding: (Exchange: amq.topic, Queue: clientid:MySubscription, 
> Routing Key: MyDurableSubscriptionTestTopic, Arguments: null)
> main 2008-09-05 15:01:43,802 INFO [server.store.berkeleydb.BDBMessageStore] 
> Restoring binding: (Exchange: amq.topic, Queue: clientid:MySubscription, 
> Routing Key: MyDurableSubscriptionTestTopic, Arguments: 
> {x-filter-jms-selector=[LONG_STRING: odd=true]})
> Steps to reproduce.
> Create DurableSubscriber with no selector
> Close subscriber
> Create DurableSubscriber with selector odd=true
> Close subscriber
> Restart broker.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
Apache Qpid - AMQP Messaging Implementation
Project:      http://qpid.apache.org
Use/Interact: mailto:[email protected]

Reply via email to