jgallimore opened a new pull request #656:
URL: https://github.com/apache/activemq/pull/656


   … sending the advisory message to trigger the subscription over the network 
of brokers.
   
   If a consumer uses an additionalPredicate (as part of a plugin, for example 
to filter messages to the consumer), the additionalPredicate will cause a 
ClassCastException and messages will not be forwarded across the network for 
this consumer.
   
   This PR creates a copy of the ConsumerInfo object (which does *not* copy the 
additional predicate), and uses the copy of the ConsumerInfo object to send the 
advisory message to trigger the subscription across the network.
   
   One (potential) drawback here is that the subscription between the brokers 
is does not filter the messages. 
   
   I did attempt to add this, by making a wrapper that implements both 
BooleanExpression and DataStructure, and could be marshalled into OpenWire, and 
then checking it in NetworkBridgeFilter. This did work, but appeared to 
introduce a number of regressions across the test suite. I'm very happy to take 
a another swing at this approach if it is preferred.
   
   I have run the full test suite across this PR, and it doesn't appear to 
break any other tests on my setup.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to