Kafka 问题汇总

1、FETCH_SESSION_ID_NOT_FOUND

2020-06-12 01:11:17.894 [Kafka Fetcher for Source: Custom Source -> Map -> Filter (1/4)] INFO  org.apache.kafka.clients.FetchSessionHandler  - [Consumer clientId=consumer-6, groupId=igg-user-chat-monitor] Node 3 was unable to process the fetch request with (sessionId=306724715, epoch=12245): FETCH_SESSION_ID_NOT_FOUND.
2020-06-12 01:11:17.894 [Kafka Fetcher for Source: Custom Source -> Map -> Filter (4/4)] INFO  org.apache.kafka.clients.FetchSessionHandler  - [Consumer clientId=consumer-5, groupId=igg-user-chat-monitor] Node 2 was unable to process the fetch request with (sessionId=660800203, epoch=12293): FETCH_SESSION_ID_NOT_FOUND.
2020-06-12 01:11:17.894 [Kafka Fetcher for Source: Custom Source -> Map -> Filter (2/4)] INFO  org.apache.kafka.clients.FetchSessionHandler  - [Consumer clientId=consumer-8, groupId=igg-user-chat-monitor] Node 4 was unable to process the fetch request with (sessionId=1302608464, epoch=12256): FETCH_SESSION_ID_NOT_FOUND.
2020-06-12 01:11:17.894 [Kafka Fetcher for Source: Custom Source -> Map -> Filter (1/4)] INFO  org.apache.kafka.clients.FetchSessionHandler  - [Consumer clientId=consumer-6, groupId=igg-user-chat-monitor] Node 3 was unable to process the fetch request with (sessionId=306724715, epoch=12245): FETCH_SESSION_ID_NOT_FOUND.

原因分析:

由于 kafka 的 segement 是可以滚动的,每次当 kafka 滚动或者删除 log segement file 时,就会有这个提示错误。这是 kafka 的一个bug,在高版本(> 2.0.0)已修复,虽然高版本也有这个提示,但是不影响

如,server.properties 配置了

############################# Log Retention Policy #############################

# The following configurations control the disposal of log segments. The policy can
# be set to delete segments after a period of time, or after a given size has accumulated.
# A segment will be deleted whenever *either* of these criteria are met. Deletion always happens
# from the end of the log.

# The minimum age of a log file to be eligible for deletion due to age
log.retention.hours=168

# A size-based retention policy for logs. Segments are pruned from the log unless the remaining
# segments drop below log.retention.bytes. Functions independently of log.retention.hours.
#log.retention.bytes=1073741824

# The maximum size of a log segment file. When this size is reached a new log segment will be created.
log.segment.bytes=1073741824

# The interval at which log segments are checked to see if they can be deleted according
# to the retention policies
log.retention.check.interval.ms=300000

解决办法:

升级 kafka 版本至 2.0.0 以上。
 

 

 

 

  • 0
    点赞
  • 3
    收藏
    觉得还不错? 一键收藏
  • 打赏
    打赏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

magic_kid_2010

你的支持将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

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

余额充值