Thanks Simon.<br><br>I agree, it's odd. I'll keep an eye out for further clues if/when I see it again. I mostly wanted to know if there was something obvious to you folks. For instance (totally a stab in the dark here...) perhaps connections between federated brokers taking a long time to establish.<br>
<br>Matt<br><br><div class="gmail_quote">On Thu, Sep 6, 2012 at 2:58 AM, Simon MacMullen <span dir="ltr"><<a href="mailto:simon@rabbitmq.com" target="_blank">simon@rabbitmq.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
That... certainly sounds very odd.<br>
<br>
So the "unknown exchange type" message is what you get when you declare an exchange using a plugin, and then remove that plugin.<br>
<br>
So could the exchange type be getting registered slowly somehow? Hard to believe, the registration happens during startup, and RabbitMQ shouldn't be able to get to the point where it's accepting connections without all exchange types being registered.<br>
<br>
I'll have a look at that code in case anything jumps out, but it's pretty simple so don't hold your breath...<br>
<br>
Cheers, Simon<div class="im"><br>
<br>
On 05/09/2012 7:27PM, Matt Pietrek wrote:<br>
</div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="im">
Let me admit up front that this is a weird one, but I'll press ahead on<br>
the chance there's something there.<br>
<br>
I've got two brokers I'm using the federation plugin with. I create a<br>
single exchange 'skytap' on each broker, and make the 'skytap' exchange<br>
on the other broker its upstream.<br>
<br>
I create the rabbitmq.config file dynamically before starting each<br>
broker. Starting from a blank slate (blowing away the mnesia directory),<br>
I launch the two nodes concurrently.<br>
<br>
When I go to the Exchange tab in either broker, I see two Exchanges as<br>
expected:<br>
<br></div>
* federation: skytap -> <a href="mailto:rabbit@mq2.skytap.com" target="_blank">rabbit@mq2.skytap.com</a><br>
<mailto:<a href="mailto:rabbit@mq2.skytap.com" target="_blank">rabbit@mq2.skytap.com</a>> B<br>
* skytap<div class="im"><br>
<br>
<br>
The type of the exchanges is x-federation-upstream and x-federation,<br>
respectively. However, when first starting up, the type column is a red<br>
color indicating a problem, and hovering over it, I get a message to the<br>
effect of "unknown exchange type x-federation. Messages published to<br>
this exchange won't work."<br>
<br></div>
Now, here's the interesting thing: I*f I wait long enough (usually<br>
around 10-15 minutes) **and without doing anything, the error state<br>
eventually goes away* and the Exchanges seem happy. This has happened at<div class="im"><br>
least three times, so it doesn't seem like a random fluke or that I<br>
accidentally did something.<br>
<br>
Here's my config file, FWIW...<br>
<br>
[<br>
{rabbit, [{cluster_nodes, [rabbit@mq1]}, {disk_free_limit, 104857600}]},<br>
{mnesia, [{debug, trace}]},<br>
{rabbitmq_federation, [{exchanges, [[{type, "topic"}, {upstream_set,<br>
"skytap_upstreams"}, {virtual_host, "/"}, {exchange, "skytap"}]]},<br>
{upstream_sets, [{"skytap_upstreams", [[{connection, "upstream-mq2"},<br>
{max_hops, 1}, {exchange, "skytap"}]]}]},<br>
{connections, [{"upstream-mq2", [{host, "mq2"}, {port, 5672}]}]}]}<br>
].<br>
<br>
Again, I realize this sounds a bit wonky, but it's happened enough times<br>
to make me not think I'm crazy.<br>
<br>
Thanks,<br>
<br>
Matt<br>
<br>
<br></div>
______________________________<u></u>_________________<br>
rabbitmq-discuss mailing list<br>
<a href="mailto:rabbitmq-discuss@lists.rabbitmq.com" target="_blank">rabbitmq-discuss@lists.<u></u>rabbitmq.com</a><br>
<a href="https://lists.rabbitmq.com/cgi-bin/mailman/listinfo/rabbitmq-discuss" target="_blank">https://lists.rabbitmq.com/<u></u>cgi-bin/mailman/listinfo/<u></u>rabbitmq-discuss</a><br>
<br>
</blockquote>
</blockquote></div><br>