{
"_index": "log-2020.08.29",
"_type": "log",
"_id": "u1ZzOHQBu8XLw8Cohy3m",
"_score": 1,
"_source": {
"level": "WARN",
"X-B3-SpanId": "5b73ad57a0410c7d",
"host": "svc.cluster.local",
"thread_name": "topic1.push-group-1",
"X-B3-TraceId": "15eda3701f9ef3d8",
"message": "Cannot find a @StreamListener matching for message with id: babd6418-6f28-cb64-1000-46f2da26c193",
"level_value": 30000,
"X-Span-Export": "false",
"port": 57506,
"@timestamp": "2020-08-29T04:22:09.533Z",
"logger_name": "org.springframework.cloud.stream.binding.DispatchingStreamListenerMessageHandler",
"@version": "1",
"tags": [
"utcook"
],
"X-B3-ParentSpanId": "b073eb9275637d9f",
"projectName": "push-service"
},
"fields": {
"@timestamp": [
"2020-08-29T04:22:09.533Z"
]
}
}
重启服务能够正常消费,一段时间后又出现无监听者的问题!!!
解决方案:
增加配置:
spring.rabbitmq.connection-timeout: 0