Issue Details (XML | Word | Printable)

Key: AMQ-714
Type: Bug Bug
Status: Resolved Resolved
Resolution: Fixed
Priority: Major Major
Assignee: Unassigned
Reporter: Kyle Himmerick
Votes: 0
Watchers: 0
Operations

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

Wildcard support for policy entries produces unexpected results

Created: 18/May/06 03:31 PM   Updated: 15/Jun/06 05:58 PM
Return to search
Component/s: Broker
Affects Version/s: 4.0 RC3, 4.0
Fix Version/s: 4.0.1, 4.1.0

Time Tracking:
Original Estimate: 2 minutes
Original Estimate - 2 minutes
Remaining Estimate: 2 minutes
Remaining Estimate - 2 minutes
Time Spent: Not Specified
Remaining Estimate - 2 minutes

File Attachments:
  Size
Zip Archive issue.zip 2006-05-23 05:12 PM Kyle Himmerick 5 kB
Environment:
linux
ibm jdk 1.4.2
sun jdk 1.5
Issue Links:
Duplicate
 


 Description  « Hide
When you define a policy Entry using a wildcard (eg. FOO.>) in the xml configuration it is not applied as expected.

Specifically I was attempting to use a lastImageSubscriptionRecoveryPolicy on all subtopics of FOO.>

If I publish three messages to each of FOO.a, FOO.b and FOO.c and then setup a consumer (retroactive = true) to each of the topics FOO.a, FOO.b and FOO.c I receive three copies of the last message sent to any of the topics In this case the third message sent to FOO.c.

Expected behaviour would be to receive the last message from each topic that is message three from FOO.a, FOO.b and FOO.c

More troubling is if I setup a new session with a consumer only to FOO.a and FOO.b I receive two copied of the third message sent to FOO.c. Even though this session is not subscribed to FOO.c, presumably this is because the policy is only keeping the last message that matches the destination and returning it as the last image, regardless of if the topic matches the subscription.

With explicit policy entries for each topic (FOO.a, FOO.b) the broker returns the correct messages, so I believe the problem is with wildcard handling. I need wildcard support here because I do not know my topic names upfront. I would think that this would be a common scenario (like setting a last image recovery policy on all stock quotes Stock.> )



 All   Comments   Work Log   Change History   Subversion Commits   FishEye   Crucible      Sort Order: Ascending order - Click to sort in descending order
No related reviews found.