[
https://issues.apache.org/jira/browse/STORM-1746?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15263951#comment-15263951
]
ASF GitHub Bot commented on STORM-1746:
---------------------------------------
Github user srdo commented on a diff in the pull request:
https://github.com/apache/storm/pull/1381#discussion_r61565774
--- Diff:
external/storm-kafka/src/jvm/org/apache/storm/kafka/KafkaUtils.java ---
@@ -213,7 +213,9 @@ 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 --
Okay, will do.
> Don't error log NOT_LEADER_FOR_PARTITION in KafkaUtils
> ------------------------------------------------------
>
> Key: STORM-1746
> URL: https://issues.apache.org/jira/browse/STORM-1746
> Project: Apache Storm
> Issue Type: Improvement
> Components: storm-kafka
> Reporter: Stig Rohde Døssing
> Assignee: Stig Rohde Døssing
> Priority: Minor
>
> NOT_LEADER_FOR_PARTITION may be returned in a fetch any time a partition in
> Kafka switches leader. Since it is transient most of the time, it should be
> downgraded to warning log level.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)