rabbitmq / rabbitmq-erlang-client

Erlang client for RabbitMQ
https://www.rabbitmq.com/
Other
184 stars 127 forks source link

what does the error mean:"unexpected_delivery_and_no_default_consumer" #67

Closed jwjgauss closed 8 years ago

jwjgauss commented 8 years ago

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

Thanks a lot.

michaelklishin commented 8 years ago

Please post questions to rabbitmq-users or Stack Overflow. RabbitMQ uses GitHub issues for specific actionable items engineers can work on, not questions. Thank you.

michaelklishin commented 8 years ago

A channel has received a delivery but it has consumer to dispatch it to and no default consumer to fall back to.