首页 > 其他 > 详细

kafka消息异常处理CommitFailedException

时间:2020-05-12 16:40:39      阅读:454      评论:0      收藏:0      [点我收藏+]

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 max.poll.interval.ms or by reducing the maximum size of batches returned in poll() with max.poll.records.

异常解决

a)调大max.poll.interval,ms,默认300000ms(300s)
b)调小max.poll.records,默认500
c)另起线程

 

参考文章:https://www.jianshu.com/p/1120e26244c2

https://blog.csdn.net/shibuwodai_/article/details/80678717

kafka消息异常处理CommitFailedException

原文:https://www.cnblogs.com/xiaoxianxianxian/p/12877049.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!