kafka消息異常處理CommitFailedException


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


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM