XiaoyiPeng created KAFKA-13728:
----------------------------------

             Summary: PushHttpMetricsReporter no longer pushes metrics when 
network failure is recovered.
                 Key: KAFKA-13728
                 URL: https://issues.apache.org/jira/browse/KAFKA-13728
             Project: Kafka
          Issue Type: Bug
          Components: tools
    Affects Versions: 3.1.0
            Reporter: XiaoyiPeng


The class *PushHttpMetricsReporter* no longer pushes metrics when network 
failure is recovered.

I debugged the code and found the problem here :
[https://github.com/apache/kafka/blob/dc36dedd28ff384218b669de13993646483db966/tools/src/main/java/org/apache/kafka/tools/PushHttpMetricsReporter.java#L214-L221]

 

When we submit a task to the *ScheduledThreadPoolExecutor* that needs to be 
executed periodically, if the task throws an exception and is not swallowed, 
the task will no longer be scheduled to execute.



--
This message was sent by Atlassian Jira
(v8.20.1#820001)

Reply via email to