Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

what does the error mean:"unexpected_delivery_and_no_default_consumer" #35

Open
jwjgauss opened this issue Aug 29, 2016 · 0 comments
Open

Comments

@jwjgauss
Copy link

jwjgauss commented Aug 29, 2016

I use rabbitmq-erlang-client rabbitmq_2.7.0 in my production env. Recently, I have found some error as "unexpected_delivery_and_no_default_consumer" in my server app log.

2016-08-26 15:25:00.465 [error] <0.1623.0> CRASH REPORT Process <0.1623.0> with 0 neighbours exited with reason: {unexpected_delivery_and_no_default_consumer,{gen_server2,call,[<0.1622.0>,{consumer_call,{'basic.deliver',<<"amq.ctag-2I715Fu1Q2m9AHgrhlN1Og">>,15804,false,<<"be3_statics_exchange">>,<<"be3_statics">>},{amqp_msg,{'P_basic',undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined},<<131,104,5,100,0,14,115,116,97,116,105,99,115,95,111,110,108,105,110,101,109,0,0,0,3,105,111,115,97,0,97,0,98,87,192,95,76>>}},infinity]}} in gen_server:terminate/7 line 826

rabbitmq consumer res:

be3_statics    amq.ctag-hQQmjXButGMUQuHJQmSc4A true    0   []
be3_statics    amq.ctag-f4VlH3_O5QBKXvyTl8xq8Q true    0   []
be3_statics     amq.ctag-iY9xwuglKAkTS0baSZ8uyw true    0   []
be3_statics    amq.ctag-uB1RG3JgzGi_YA6Qqy8G6w true    0   []
be3_statics     amq.ctag-5VUGfvW4L3eO-7rVjG1Q0w true    0   []
be3_statics    amq.ctag-OiWZBasEegvwJhB2taMayA true    0   []
be3_statics     amq.ctag-ogUoP0BumVmsP2zaYiFPOg true    0   []
be3_statics     amq.ctag-VcE4XGHk1DB5jqclnQDqhQ true    0   []
be3_statics     amq.ctag-9TDHYscJrMun559kduyvEA true    0   []
be3_statics     amq.ctag-g-M6m686GQOqvgeHEvzO2g true    0   []

my consumer config is as follows

  #'basic.consume_ok'{consumer_tag = Tag} = amqp_channel:subscribe(Channel, #'basic.consume'{queue = Queue}, self()),   %% no_ack = false

Also, I do not call the method 'basic.cancel'.

After viewing source code, I know it is happened when tag in Msg is not in consumer tags. I wonder

  • What is the root cause for the error: "unexpected_delivery_and_no_default_consumer"?
  • How to avoid the error?

Thanks a lot.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant