errorCode = fetchResponse.errorCode(topic, partition);
LOG.warn(
String.format("Error fetching data from broker %s:%d for topic %s, partition %d. Error code: %d",
consumer.host(), consumer.port(), topic, partition, errorCode));
if (errorCode == ErrorMapping.OffsetOutOfRangeCode()) {
throw new OffsetOutOfRangeException(
String.format("Requested offset %d is out of range for topic %s partition %d",
fetchOffset, topic, partition));
}
findLeader();
continue;