[
https://issues.apache.org/jira/browse/KAFKA-7111?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16527614#comment-16527614
]
ASF GitHub Bot commented on KAFKA-7111:
---------------------------------------
stanislavkozlovski opened a new pull request #5312: KAFKA-7111: Log error
connecting to node at a higher log level
URL: https://github.com/apache/kafka/pull/5312
There were cases where the broker would return an unresolve-able address
(e.g broker inside a docker network while client is outside) and the client
would not log any information as to why it is timing out, since the default log
level does not print `DEBUG` messages.
Changing this log level will enable easier troubleshooting in such
circumstances. This change does not change the logs shown on transient failures
like a broker failure, judging from my local tests.
### Committer Checklist (excluded from commit message)
- [ ] Verify design and implementation
- [ ] Verify test coverage and CI build status
- [ ] Verify documentation (including upgrade notes)
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
> Review the NetworkClient log level used
> ---------------------------------------
>
> Key: KAFKA-7111
> URL: https://issues.apache.org/jira/browse/KAFKA-7111
> Project: Kafka
> Issue Type: Improvement
> Components: clients
> Reporter: Luan Cestari
> Assignee: Stanislav Kozlovski
> Priority: Trivial
>
> Hi,
>
> I was using Kafka on some projects and unfortunately I had to use Debug (and
> some times even Trace) log level to see some issues. One of the most recently
> cases was:
> [https://github.com/apache/kafka/blob/trunk/clients/src/main/java/org/apache/kafka/clients/NetworkClient.java#L872]
>
> If I got the name of the broker and it is unreachable, the errors should be
> more severe than "DEBUG" level IMHO. I would at least put a INFO level for
> this case or ERROR level (which seems to fit better but I don't know the
> practices used in the project).
>
> Thank you in advance
>
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)