Github user srdo commented on a diff in the pull request:
https://github.com/apache/storm/pull/1381#discussion_r61555375
--- Diff:
external/storm-kafka/src/jvm/org/apache/storm/kafka/KafkaUtils.java ---
@@ -213,7 +213,11 @@ public static ByteBufferMessageSet
fetchMessages(KafkaConfig config, SimpleConsu
throw new TopicOffsetOutOfRangeException(msg);
} else {
String message = "Error fetching data from [" + partition
+ "] for topic [" + topic + "]: [" + error + "]";
- LOG.error(message);
+ if (error.equals(KafkaError.NOT_LEADER_FOR_PARTITION)) {
--- End diff --
It should get caught here
https://github.com/apache/storm/blob/master/external/storm-kafka/src/jvm/org/apache/storm/kafka/KafkaSpout.java#L142
or here
https://github.com/apache/storm/blob/master/external/storm-kafka/src/jvm/org/apache/storm/kafka/trident/TridentKafkaEmitter.java#L78
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---