Kafka
  1. Kafka
  2. KAFKA-1518

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

    Details

    • Type: Bug Bug
    • Status: Open
    • Priority: Major Major
    • Resolution: Unresolved
    • Affects Version/s: 0.8.1.1
    • Fix Version/s: None
    • Component/s: tools
    • Labels:
      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.

        Activity

        No work has yet been logged on this issue.

          People

          • Assignee:
            Unassigned
            Reporter:
            Daniel Compton
          • Votes:
            1 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:

              Development