• RabbitMQ消费服务关掉时会删除exchange,导致生成服务发布内容失败


    生产环境有段时间打印了如下错误

    com.rabbitmq.client.AlreadyClosedException: channel is already closed due to channel error; protocol method: #method<channel.close>(reply-code=404, reply-text=NOT_FOUND - no exchange 'TEMPORARY.SYSTEM.LOGIN.LOGGING' in vhost '/', class-id=60, method-id=40)
        at com.rabbitmq.client.impl.AMQChannel.ensureIsOpen(AMQChannel.java:209)
        at com.rabbitmq.client.impl.AMQChannel.transmit(AMQChannel.java:338)
        at com.rabbitmq.client.impl.ChannelN.basicPublish(ChannelN.java:686)
        at com.rabbitmq.client.impl.ChannelN.basicPublish(ChannelN.java:668)
        at com.rabbitmq.client.impl.ChannelN.basicPublish(ChannelN.java:658)
        at com.rabbitmq.client.impl.recovery.AutorecoveringChannel.basicPublish(AutorecoveringChannel.java:192)

    经过测试,发现出现错误的时间点刚好是消费服务关了,消费服务关闭时会删除exchange。

  • 相关阅读:
    0.Mysql优化框架
    [C]extern char **environ
    [C]Armstrong Number
    [C]struct, union的结合
    [C]enum类型
    [C]fibonacci series, recursion, time.h
    [C/JAVA]二维数组
    [C] char**, swich-case, refactoring, stdbool.h
    hardly/scarcely ... goes by without ...
    [C]随机数生成
  • 原文地址:https://www.cnblogs.com/junge8618/p/RabbitMQ.html
Copyright © 2020-2023  润新知