
kafka
christina_he
这个作者很懒,什么都没留下…
展开
-
kafka poll 和自动提交
maybeAutoCommitOffsetsAsync 最后这个就是poll的时候会自动提交,而且没到auto.commit.interval.ms间隔时间也不会提交 /** * Poll for coordinator events. This ensures that the coordinator is known and that the consumer * has joined the group (if it is using group management.原创 2021-05-11 17:02:29 · 1308 阅读 · 0 评论 -
kafka一直rebalance
max.poll.interval.ms 拉取时间间隔,这个参数会影响rebalance时间。如果一个消息费心跳正常,但是没有拉取消息,可能会导致异常情况下,永远锁住某个分区,但是不消费。所以有这个参数用来处理这个问题,到了最大间隔时间不拉取的话,客户端会被移出,消息重新分配。...原创 2021-03-05 09:23:51 · 937 阅读 · 1 评论