[英]Kafka Producer error: Closing the Kafka producer with timeoutMillis = 9223372036854775807 ms
One of my KafkaStream apps gives me the following error:我的一个 KafkaStream 应用程序给了我以下错误:
Closing the Kafka producer with timeoutMillis = 9223372036854775807 ms
It is not likely a permission or connectivity issue.这不太可能是权限或连接问题。 Because it consumes a batch of messages (maybe till the last message available) then I see
Informed to shut down
in logs and then State transition from RUNNING to PENDING_SHUTDOWN
.因为它消耗了一批消息(可能直到最后一条消息可用),所以我看到
Informed to shut down
在日志中,然后State transition from RUNNING to PENDING_SHUTDOWN
。 Then I get the timeout error.然后我得到超时错误。 It is a simple single-threaded app with code as simple as this:
这是一个简单的单线程应用程序,代码如下:
builder.stream("prod.company.scores",
Consumed.with(ScoreSerde.getGenericKeySerde(), ScoreSerde.getEnvelopeSerde()))
.filter((key,value) -> isRecordNew(value))
.filter((key,value) -> isScoreNew(value))
.filter((key,value) -> isScoreRedeem(value))
.peek(foreachAction)
.to("kafka-consumer.score.redeem");
INFO KafkaProducer: Closing the Kafka producer with timeoutMillis = 9223372036854775807 ms. INFO KafkaProducer:使用 timeoutMillis = 9223372036854775807 ms 关闭 Kafka 生产者。 this message does not shutdown the application.
此消息不会关闭应用程序。 Need to check for other problems.
需要检查其他问题。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.