Skip to content

amqp投递了未创建的exchange后, 再也无法投递正确的exchange #3802

Answered by limingxinleo
khiphop asked this question in Q&A
Discussion options

You must be logged in to vote

这个问题应该 rabbitmq 内部的问题,当投递了不存在的 exchange 后,那个 channel 就有问题了,如果使用了 confirm 模式,会报错然后销毁这个 channel,如果不使用 confirm 模式,后面用这个 channel 投递时,任何消息都无法投递成功。

当然,如果 exchange 存在,你切换 routingKey 是没有任何问题的,即使这个 key 不存在。

相关 issue

php-amqplib/php-amqplib#823

Replies: 10 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by limingxinleo
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
question Further information is requested
2 participants
Converted from issue

This discussion was converted from issue #3801 on July 11, 2021 11:48.