我有3个消费者在kafka队列上工作(1个主题中有6个分区)。配置:
enable.auto.commit: true
auto.commit.interval.ms : 1000
heartbeat.interval.ms: 4000
当有重新平衡时,我遇到了问题。如下面的示例日志中所示,向下移动偏移量。
INFO [2016-02-25 04:39:03,628] Consumer: Committed(Records = '3', Offset = '315377', Time = '2412ms')
INFO [2016-02-25 07:31:13,302] AbstractCoordinator: Attempt to heart beat failed since the group is rebalancing, try to re-join group.
INFO [2016-02-25 07:31:15,118] Consumer: Committed(Records = '3', Offset = '307104', Time = '0ms')
我没有看到任何消费者无法提交抵消的错误。什么可能是错的?