【Azure Event Hub】Kafka消息发送失败(Timeout Exception)

问题描述

使用Azure Event Hub,客户端通过kafka发送消息到Event Hub中,规律性的遇见Timeout Exception

" send fail; nested exception is org.springframework.kafka.kafkaException: xxx"

 

问题解答

Kafka客户端与Event Hub服务端的连接(Connection)空闲事件过长,Event Hub服务端会自动关闭Idle时间达到4分钟的连接,进而导致之后再通过这个connection进行的请求无法完成且报错,在修改了connections.max.idle.ms 这个参数为180000 后解决。

Azure closes inbound Transmission Control Protocol (TCP) idle > 240,000 ms, which can result in sending on dead connections (shown as expired batches because of send timeout).

 

参考资料

Java client configuration properties : https://learn.microsoft.com/en-us/azure/event-hubs/apache-kafka-configurations#java-client-configuration-properties

 

 
 
posted @   路边两盏灯  阅读(11)  评论(0编辑  收藏  举报
相关博文:
阅读排行:
· DeepSeek 开源周回顾「GitHub 热点速览」
· 物流快递公司核心技术能力-地址解析分单基础技术分享
· .NET 10首个预览版发布:重大改进与新特性概览!
· AI与.NET技术实操系列(二):开始使用ML.NET
· 单线程的Redis速度为什么快?
历史上的今天:
2023-01-05 【Azure 应用服务】Azure Function Python函数中,如何获取Event Hub Trigger的消息Event所属于的PartitionID呢?
2022-01-05 【Azure API 管理】APIM添加Log-to-eventhub的策略后,一些相关APIM与Event Hub的问题
2021-01-05 【Azure Cloud Services】云服务频繁发生服务器崩溃的排查方案
点击右上角即可分享
微信分享提示