kafkakafka UnknownProducerIdException raised broker locate producer metadata producerId

Posted 九师兄

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了kafkakafka UnknownProducerIdException raised broker locate producer metadata producerId相关的知识,希望对你有一定的参考价值。

文章目录


1.概述

kafka两阶段提交时候遇到这个错误,是因为kafka数据回滚元数据丢失导致的么?

错误信息如下:

This exception is raised by the broker if it could not locate the producer metadata associated with the producerId in question. This could happen if, for instance, the producer\'s records were deleted because their retention time had elapsed. Once the last records of the producerId are removed, the producer\'s metadata is removed from the broker, and future appends by the producer will return this exception.

报错异常栈如下

以上是关于kafkakafka UnknownProducerIdException raised broker locate producer metadata producerId的主要内容,如果未能解决你的问题,请参考以下文章

大数据技术之KafkaKafka APIKafka监控Flume对接KafkaKafka面试题

大数据技术之KafkaKafka APIKafka监控Flume对接KafkaKafka面试题

kafkaKafka Leader选举流程和选举策略

kafkakafka 时间轮 TimingWheel

kafkakafka 使用 案例

kafkakafka特性