[
https://issues.apache.org/jira/browse/KAFKA-7111?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16527136#comment-16527136
]
Luan Cestari commented on KAFKA-7111:
-------------------------------------
Hi Stanislav,
Sorry, I worked until very late. I come up with a simple example of the problem
[https://github.com/luan-cestari/KAFKA7111]
I made it very quickly so late me know if I can help more. The idea is that I
mentioned earlier , if you start the docker images (one of them is the kafka
broker) and have everything property configured (at least what should) , the
Java application will start with no erros until it tries to send the first
message which it throws an exception but not informing the root cause that it
in the TRACE level (which is this Jira issue). Using TRACE you will see that
somehow the Kafka client change the hostname configured to the dockers internal
hostname which is called "broker" (not localhost as configured and started with
no errors) (this could be another Jira issue but can be an issue on spring or
other dependency). Using "broker" in the "/etc/hosts" solve the problem and it
should send messages.
Another surprising behavior was the send() behaves synchronous if the amount of
bytes configured is not enough to store one message (another issue but again
can be from spring kafka doing something wrong, I didn't have time to
invetigate)
> 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)