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