Attila Nagy created AMQ-4847:
--------------------------------
Summary: "Durable subscriptions" with selectors doesn't work with
virtual topics
Key: AMQ-4847
URL: https://issues.apache.org/jira/browse/AMQ-4847
Project: ActiveMQ
Issue Type: Bug
Components: Broker
Affects Versions: 5.9.0
Environment: FreeBSD 9/amd64
openjdk version "1.7.0_25"
OpenJDK Runtime Environment (build 1.7.0_25-b15)
OpenJDK 64-Bit Server VM (build 23.21-b01, mixed mode)
AMQ 5.9.0
Reporter: Attila Nagy
I can create durable subscriptions with selectors on a regular topic, so only
messages matching the selector will be actually stored when the consumer is
offline.
I couldn't achieve the same with virtual topics, where all of the messages will
be delivered into the consumer queue, and if I use a selector there, there will
be a lot of unconsumed messages.
These are the two programs I've used for testing:
http://pastebin.com/vxRtKfGu
http://pastebin.com/4j5Z9zce
Here, the sender will send 20000 messages, the receiver receives 2/3 (13333)
messages according to its selector, but the consumer queue will have all the
20k messages initially.
--
This message was sent by Atlassian JIRA
(v6.1#6144)