Uploaded image for project: 'Kafka'
  1. Kafka
  2. KAFKA-13728

PushHttpMetricsReporter no longer pushes metrics when network failure is recovered.

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 3.1.0
    • 3.2.0
    • tools
    • None

    Description

      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.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              XiaoyiPeng XiaoyiPeng
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: