返回到文章

采纳

编辑于

kafka消费时候,报Commit cannot be completed since the group has already rebalanced and assigned the partitions to another member. T

kafka

设置的是手动提交offset,这一行报错

consumer.commitSync 

报了以下错误

org.apache.kafka.clients.consumer.CommitFailedException: Commit cannot be completed since the group has already rebalanced and assigned the partitions to another member. This means that the time between subsequent calls to poll() was longer than the configured session.timeout.ms, which typically implies that the poll loop is spending too much time message processing. You can address this either by increasing the session timeout or by reducing the maximum size of batches returned in poll() with max.poll.records.

导致我的offset回滚了,引起大量的重复消费,怎么解决?