![](/img/trans.png)
[英]How to get rid of “Closing the Kafka producer with timeoutMillis = …”
[英]Kafka Producer error: Closing the Kafka producer with timeoutMillis = 9223372036854775807 ms
我的一個 KafkaStream 應用程序給了我以下錯誤:
Closing the Kafka producer with timeoutMillis = 9223372036854775807 ms
這不太可能是權限或連接問題。 因為它消耗了一批消息(可能直到最后一條消息可用),所以我看到Informed to shut down
在日志中,然后State transition from RUNNING to PENDING_SHUTDOWN
。 然后我得到超時錯誤。 這是一個簡單的單線程應用程序,代碼如下:
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:使用 timeoutMillis = 9223372036854775807 ms 關閉 Kafka 生產者。 此消息不會關閉應用程序。 需要檢查其他問題。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.