首页 > 解决方案 > 是什么导致“分区没有提交的偏移量”,然后是 IllegalStateException

问题描述

我最近升级了 Kafka Streams 2.4.1 应用程序,由于以下错误,我们开始看到应用程序定期崩溃:

2020-05-13T11:27:08.553Z INFO  <> [chat-98346af0-1be5-41e9-b15f-3cba364efa35-StreamThread-2] o.a.k.c.c.i.ConsumerCoordinator - [Consumer clientId=chat-98346af0-1be5-41e9-b15f-3cba364efa35-StreamThread-2-consumer, groupId=chat] Found no committed offset for partition private.chat.endpoint-1 
2020-05-13T11:27:08.554Z ERROR <> [chat-98346af0-1be5-41e9-b15f-3cba364efa35-StreamThread-2] o.a.k.s.p.internals.StreamThread - stream-thread [chat-98346af0-1be5-41e9-b15f-3cba364efa35-StreamThread-2] Encountered the following error during processing: 
java.lang.IllegalStateException: Offset limit should monotonically increase, but was reduced. New limit: 0. Previous limit: 1641
    at org.apache.kafka.streams.processor.internals.StandbyTask.updateOffsetLimits(StandbyTask.java:215)
    at org.apache.kafka.streams.processor.internals.StandbyTask.update(StandbyTask.java:181)
    at org.apache.kafka.streams.processor.internals.StreamThread.maybeUpdateStandbyTasks(StreamThread.java:1009)
    at org.apache.kafka.streams.processor.internals.StreamThread.runOnce(StreamThread.java:825)
    at org.apache.kafka.streams.processor.internals.StreamThread.runLoop(StreamThread.java:698)
    at org.apache.kafka.streams.processor.internals.StreamThread.run(StreamThread.java:671)

什么会导致“找不到分区的已提交偏移量”?

其他需要注意的事项:

标签: apache-kafkaapache-kafka-streams

解决方案


推荐阅读