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

KafkaMetricsReporter prevents Kafka from starting if the custom reporter throws an exception

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Not A Bug
    • 0.8.1.1
    • None
    • tools
    • None

    Description

      When Kafka starts up, it starts custom metrics reporters. If any of these throw an exception on startup then this will block Kafka from starting.

      For example using kafka-riemann-reporter, if Riemann is not available then it will throw an IO Exception which isn't caught by KafkaMetricsReporter. This means that Kafka will fail to start until it can connect to Riemann, coupling a HA system to a non HA system.

      It would probably be better to log the error and perhaps have a callback hook to the reporter where they can handle it and startup in the background.

      Attachments

        Activity

          People

            Unassigned Unassigned
            danielcompton Daniel Compton
            Votes:
            1 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: