【发布时间】:2017-10-23 18:36:21
【问题描述】:
我看到我的自定义 Spring 云流接收器与日志接收器流应用程序依赖项在 RabbitMQ 中断期间失去了 RabbitMQ 连接,尝试建立连接 5 次,然后停止其使用者。一旦 RabbitMQ 启动,我必须手动重新启动应用程序以使其成功连接。当我看到rabbitMQ绑定here的默认属性时,它给出了间隔时间,但没有无限重试的属性(我认为这是默认行为)。有人可以让我知道我在这里可能缺少什么以使其尝试无限连接吗?
Error faced during outage triggering consumer retry :
2017-08-08T10:52:07.586-04:00 [APP/PROC/WEB/0] [OUT] Caused by: com.rabbitmq.client.ShutdownSignalException: channel error; protocol method: #method<channel.close>(reply-code=404, reply-text=NOT_FOUND - home node 'rabbit@229ec9f90e07c75d56a0aa84dc28f602' of durable queue 'datastream.dataingestor.datastream' in vhost '8880756f-8a21-4dc8-9b97-95e5a3248f58' is down or inaccessible, class-id=50, method-id=10)
【问题讨论】:
-
3 次后我遇到了类似的问题,而不是 5 次。显然这是来自
SimpleMessageListenerContainer(docs.spring.io/spring-amqp/docs/1.7.4.RELEASE/reference/…) 的默认值。你是否以某种方式覆盖了这个数字?
标签: rabbitmq cloud-foundry spring-cloud spring-cloud-stream spring-cloud-dataflow