History | Log In     View a printable version of the current page.  
Issue Details (XML | Word | Printable)

Key: AMQ-808
Type: Bug Bug
Status: Resolved Resolved
Resolution: Fixed
Priority: Major Major
Assignee: Hiram Chirino
Reporter: Hiram Chirino
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
ActiveMQ

The DestinationMap removeAll is removing too many nodes out of the map.

Created: 11/Jul/06 04:18 AM   Updated: 11/Jul/06 04:21 AM
Component/s: Broker
Affects Version/s: 4.0
Fix Version/s: 4.1.0, 4.0.2

Time Tracking:
Not Specified


 Description  « Hide
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:

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


 All   Comments   Work Log   Change History   Subversion Commits   FishEye   Crucible      Sort Order: Ascending order - Click to sort in descending order
Hiram Chirino - 11/Jul/06 04:21 AM
fixed.