Anyone successfully using the x-random exchange in 2.7.1? Upgraded and
installed the random exchange from Github, but when I try to declare such
an exchange via the management UI I get:

** Generic server <0.16679.0> terminating
** Last message in was {'$gen_cast',
{method,
{'exchange.declare',0,<<"test">>,

<<"x-random">>,false,true,false,true,false,
[]},
none}}
** Reason for termination ==
** {{error,{undef,[{rabbit_exchange_type_random,serialise_events,[]},
{rabbit_exchange,store,1},
{rabbit_exchange,'-declare/6-fun-0-',3},
{rabbit_misc,'-execute_mnesia_transaction/2-fun-0-',2},
{mnesia_tm,apply_fun,3},
{mnesia_tm,execute_transaction,5},
{worker_pool_worker,handle_call,3},
{gen_server2,handle_msg,2}]}},
[{rabbit_misc,execute_mnesia_transaction,1},
{rabbit_misc,execute_mnesia_transaction,2},
{rabbit_channel,handle_method,3},
{rabbit_channel,handle_cast,2},
{gen_server2,handle_msg,2},
{proc_lib,init_p_do_apply,3}]}

The startup_log shows the plugin is active:

Activating RabbitMQ plugins ...
12 plugins activated:
...
* random_exchange-0.1.0
...
starting exchange type random
...done
...


I noticed that the current code in Github pulls rabbitmq_commons from
2.7.0, not 2.7.1. Possible cause?

Node has hipe_compile set to true, FYI.

Elias
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rabbitmq.com/pipermail/rabbitmq-discuss/attachments/20120202/3b762704/attachment.htm>

Search Discussions

  • Elias Levy at Feb 2, 2012 at 9:33 pm

    On Thu, Feb 2, 2012 at 4:14 PM, Elias Levy wrote:

    ** Reason for termination ==
    ** {{error,{undef,[{rabbit_exchange_type_random,serialise_events,[]},
    Figured the serialize_events function was missing from the exchange module.
    Since the function is as simple as it gets and its the same on all of the
    official exchanges, adding it to the random exchange got it working.

    Elias
    -------------- next part --------------
    An HTML attachment was scrubbed...
    URL: <http://lists.rabbitmq.com/pipermail/rabbitmq-discuss/attachments/20120202/7be0948e/attachment.htm>

Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
grouprabbitmq-discuss @
categoriesrabbitmq
postedFeb 2, '12 at 9:14p
activeFeb 2, '12 at 9:33p
posts2
users1
websiterabbitmq.com
irc#rabbitmq

1 user in discussion

Elias Levy: 2 posts

People

Translate

site design / logo © 2022 Grokbase