kafka超时导致的重复消费的问题

本文探讨了Kafka中由于超时导致的重复消费问题,分析了session.timeout.ms和max.poll.interval.ms的区别与作用。内容涉及Kafka的heartbeat机制、KIP-62的引入以及如何避免消息丢失和消费者超时。建议通过调整max.poll.interval.ms和max.poll.records来控制处理时间和防止重复消费。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

今天看到群友遇到个问题:

问题的表象是超时导致autoCommit失败,从而导致重复消费

错误内容是:

2018-08-21 00:00:00.938 [kudu-0-C-1] WARN o.a.k.c.consumer.internals.ConsumerCoordinator - Auto offset commit failed for group sm: 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
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值