我遇到了卡夫卡的问题。
我将kafka版本从0.11.0.1升级到1.1.0。升级后,我收到的警告信息太多了。
[2018-06-19 13:34:45,377] WARN Received a PartitionLeaderEpoch assignment for an epoch < latestEpoch. This implies messages have arrived out of order. New: {epoch:0, offset:350280659}, Current: {epoch:4, offset:126401625} for Partition: __consumer_offsets-48 (kafka.server.epoch.LeaderEpochFileCache)
[2018-06-19 13:34:45,386] WARN Received a PartitionLeaderEpoch assignment for an epoch < latestEpoch. This implies messages have arrived out of order. New: {epoch:0, offset:793868383}, Current: {epoch:4, offset:792201264} for Partition: __consumer_offsets-42 (kafka.server.epoch.LeaderEpochFileCache)
[2018-06-19 13:34:45,388] WARN Received a PartitionLeaderEpoch assignment for an epoch < latestEpoch. This implies messages have arrived out of order. New: {epoch:0, offset:793868384}, Current: {epoch:4, offset:792201264} for Partition: __consumer_offsets-42 (kafka.server.epoch.LeaderEpochFileCache)
[2018-06-19 13:34:45,400] WARN Received a PartitionLeaderEpoch assignment for an epoch < latestEpoch. This implies messages have arrived out of order. New: {epoch:0, offset:793868385}, Current: {epoch:4, offset:792201264} for Partition: __consumer_offsets-42 (kafka.server.epoch.LeaderEpochFileCache)
如何解决此警告消息?
答案 0 :(得分:1)
我重新分配了发出这种警告消息的分区。我不再收到这些警告消息。如果您收到这些消息,可以尝试重新分配分区。它对我有用。