You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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 max.poll.interval.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.
早上一到公司发现告警消息近百条,明显有异常,通过告警条件查得数据库中的数据没有更新。
由于数据库是通过comsumer消费后插入作为同步的,所以将问题定位到comsumer。
登录kafka eagle发现,数据堆积无消费。
查看日志发现:
涉及两个参数:
当max.poll.records处理时间超过max.poll.interval.ms,则会判定为comsumer异常,接着触发rebalance,之后再commit,就会报以上异常。
解决思路:测试每条记录的消费时长,判断max.poll.records总耗时,并设置好max.poll.interval.ms要足够大,并且保证消息不堆积,能正常消费完。
解决方法:将max.poll.records调小,或者max.poll.interval.ms调大
�
The text was updated successfully, but these errors were encountered: