This repository has been archived by the owner on Oct 23, 2024. It is now read-only.
add support recreate queue and reconnect to rabbitmq #1381
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
1、add support to recreate queue when queue was delete,we can test delete queue in rabbitmq manamgent
2、add support to reconnect to rabbitmq
3、add suppert to rabbitmq has many host or ip,if rabbitmq.host="127.0.0.1,192.168.0.1",amqpClient.js will use all the ip to test which can connect,this fix was for rabbitmq cluster which had no haproxy
4、rewirete use direct or topic by base class MsgSenderReceiver
5、change rabbitmq queue name through purpose
notice: if use this fix in pod env, we must delete the old exchange which had create in rabbitmq,beacuse this fix change the rabbitmq exchange options like autoDelete and durable