activemq-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Hiram Chirino (JIRA)" <j...@apache.org>
Subject [jira] Resolved: (AMQ-808) The DestinationMap removeAll is removing too many nodes out of the map.
Date Tue, 11 Jul 2006 04:21:51 GMT
     [ https://issues.apache.org/activemq/browse/AMQ-808?page=all ]
     
Hiram Chirino resolved AMQ-808:
-------------------------------

    Resolution: Fixed

fixed.

> The DestinationMap removeAll is removing too many nodes out of the map.
> -----------------------------------------------------------------------
>
>          Key: AMQ-808
>          URL: https://issues.apache.org/activemq/browse/AMQ-808
>      Project: ActiveMQ
>         Type: Bug

>   Components: Broker
>     Versions: 4.0
>     Reporter: Hiram Chirino
>     Assignee: Hiram Chirino
>      Fix For: 4.1, 4.0.2

>
>
> This was initially noticed because at times avisoryies stopped working for some cases.
 This is due to the way the Region uses a DestinationMap to find all the destinations that
match a subscription.
> A unit test that fails looks like:
> {code:java}
>     public void testAddAndRemove() throws Exception {
>     	
>         put("FOO.A", v1);
>         assertMapValue("FOO.>", v1);
>         
>         put("FOO.B", v2);        
>         assertMapValue("FOO.>", v1, v2);
>         
>         Set set = map.removeAll(createDestination("FOO.A"));
>         
>         assertMapValue("FOO.>", v2);  // This Fails.  nothing is left in FOO.>
>         
>     }
> {code}

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   https://issues.apache.org/activemq/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


Mime
View raw message