[rabbitmq-discuss] Bug with consistent hash exchange.

Wojciech Durczyński wojciech.durczynski at comarch.com
Thu Dec 8 14:34:24 GMT 2011


Hello. 

I encountered bug in consistent-hash-exchange used in exchange-exchange 
routing.
Let's consider following routing:

exchange A of type topic
exchange B of type consistent-hash-exchange
exchange C of type consistent-hash-exchange

binding A -> B with routing key "b.#"
binding A -> C with routing key "c.#"

If there are queues bound to exchanges B and C, everything works as 
expected.

If there aren't queues bound to C, but there are queues bound to B then 
message with routing key "c.x" sent to exchange A is routed to one of the 
B's queues. It should be discarded instead or cause NO-ROUTE or 
NO_CONSUMERS (message flag dependent).

Regards
Wojciech Durczyński
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rabbitmq.com/pipermail/rabbitmq-discuss/attachments/20111208/8c117216/attachment.htm>


More information about the rabbitmq-discuss mailing list