[ 
https://issues.apache.org/jira/browse/KAFKA-649?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13669433#comment-13669433
 ] 

Neha Narkhede commented on KAFKA-649:
-------------------------------------

Actually, there is another error message that needs to be fixed in KafkaApis - 

In handleTopicMetadataRequest() -

                  error("Error while fetching metadata for partition 
%s".format(topicAndPartition), e)

Here, we should special case LeaderNotAvailable and ReplicaNotAvailable. And 
only print error if it is anything other than that. This will reduce the log 
pollution due to metadata requests during leader failover
                
> Cleanup log4j logging
> ---------------------
>
>                 Key: KAFKA-649
>                 URL: https://issues.apache.org/jira/browse/KAFKA-649
>             Project: Kafka
>          Issue Type: Improvement
>    Affects Versions: 0.8
>            Reporter: Jay Kreps
>            Assignee: Jun Rao
>            Priority: Blocker
>         Attachments: kafka-649_extra.patch, kafka-649.patch
>
>
> Review the logs and do the following:
> 1. Fix confusing or duplicative messages
> 2. Assess that messages are at the right level (TRACE/DEBUG/INFO/WARN/ERROR)
> It would also be nice to add a log4j logger for the request logging (i.e. the 
> access log) and another for the controller state change log, since these 
> really have their own use cases.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Reply via email to