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

Philip Nee commented on KAFKA-15686:
------------------------------------

Hi [~ihavenoem...@163.com] - Have you tried using client-side JMX metrics? 
Metrics such as `connection-count` should give you a pretty good sense of the 
active network connections. Would something like this help in this situation? 
{code:java}
consumer.metrics().get(new MetricName("connection-count" ... )){code}

> Consumer should be able to detect network problem
> -------------------------------------------------
>
>                 Key: KAFKA-15686
>                 URL: https://issues.apache.org/jira/browse/KAFKA-15686
>             Project: Kafka
>          Issue Type: New Feature
>          Components: consumer
>    Affects Versions: 3.5.0
>            Reporter: Jiahongchao
>            Priority: Minor
>
> When we call poll method in consumer, it will return normally even if some 
> partitions do not have a leader.
> What should we do to detect such failures? Currently we have to check log to 
> find out broker connection problem.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to