amqp_client icon indicating copy to clipboard operation
amqp_client copied to clipboard

what does the error mean:"unexpected_delivery_and_no_default_consumer"

Open jwjgauss opened this issue 8 years ago • 0 comments

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]  CRASH REPORT Process  with 0 neighbours exited with reason: {unexpected_delivery_and_no_default_consumer,{gen_server2,call,[,{consumer_call,{'basic.deliver',>,15804,false,>,>},{amqp_msg,{'P_basic',undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined},>}},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.

jwjgauss avatar Aug 29 '16 08:08 jwjgauss