多节点情况下,只有这个kafka producer生产者有问题
错误日志如下:
ERROR Sender - Uncaught error in kafka producer I/O thread:
java.lang.IllegalStateException: Correlation id for response (19685882) does not match request (19685878)
at org.apache.kafka.clients.NetworkClient.correlate(NetworkClient.java:486)
at org.apache.kafka.clients.NetworkClient.parseResponse(NetworkClient.java:381)
at org.apache.kafka.clients.NetworkClient.handleCompletedReceives(NetworkClient.java:449)
at org.apache.kafka.clients.NetworkClient.poll(NetworkClient.java:269)
at org.apache.kafka.clients.producer.internals.Sender.run(Sender.java:229)
at org.apache.kafka.clients.producer.internals.Sender.run(Sender.java:134)
at java.lang.Thread.run(Thread.java:748)
The server disconnected before a response was received.
org.apache.kafka.common.errors.NetworkException: The server disconnected before a response was received.
kafka的bug,网咯协议返回包序号不一致导致的。
通过升级kafka版本来解决:
0.11.0.1
,1.0.0
。问题bug报告可参考:
https://issues.apache.org/jira/browse/KAFKA-9296
这个bug触发条件是发的太快了吗?
网络繁忙,还有cpu高也会引起的。
9296这个问题现在还是开发状态,显示没有修复版本。
嗯,文章里面有关联连接,那个显示了修复版本。
你的答案