kafka报错: ommit cannot be completed since the group has already rebalanced and assigned the partitions

发布于 / 随记 / 0条评论 / Tags: none / 62 次浏览

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.

这个是因为kakfa一次poll的太多了,

spring:
  kafka:
    bootstrap-servers: ${kafka.host}
    consumer:
      group-id: tv.rr.bus
      enable-auto-commit: false
      max-poll-records: 350 # 改成50

    评论区(暂无评论)